I create more tiles in one furnace block, and save them into array and on touch i open tile's inventory to player, it works. But furnace doesn't begin smelt :/ but idk why. how to fix it? my code: PHP: public function createFurnace(Player $p){ $id = $this->plugin->getPlayerTeam($p)->getId(); $nbt = new Compound("", [ new Enum("Items", []), new String("id", Tile::FURNACE), new Int("x", $this->plugin->data[$id."Furnace"]->x), new Int("y", $this->plugin->data[$id."Furnace"]->y), new Int("z", $this->plugin->data[$id."Furnace"]->z), new String("CustomName", "Ender Furnace") ]); $nbt->Items->setTagType(NBT::TAG_Compound); $chest = Tile::createTile("Furnace", $this->plugin->level->getChunk($this->plugin->data[$id."Furnace"]->x >> 4, $this->plugin->data[$id."Furnace"]->z >> 4), $nbt); $inv = new FurnaceInventory($chest); $this->plugin->getPlayerData($p)->setFurnace($inv); }
This is really interesting! I'll check that out. I am pretty sure its because the tiles are linked to the block and only 1 tile can be at 1 position
Yes but only in client side that is why you can not add inventory of furnace if you have not furnace block but i have it, and i can open its inventory just smelting doesn't work and it is by server side
And use floor, just in case: PHP: new Int("x", floor($this->plugin->data[$id."Furnace"]->x)), new Int("y", floor($this->plugin->data[$id."Furnace"]->y)), new Int("z", floor($this->plugin->data[$id."Furnace"]->z)),
OMG it works now but in steadfast crafting doesn't work and idk why :/ and for annihilation i need crafting too more than ender furnace