Open benda95280 opened 10 months ago
I've found the problem with '$id', i was using it wrongly :
$blockFactory->registerBlock(static fn($id) => new TestFurnace (new BlockIdentifier($id,TileNormalFurnace::class), ucwords(str_replace('_', ' ', "test_furnace")), new BlockTypeInfo(BlockBreakInfo::pickaxe(3.5, ToolTier::WOOD()))), $namespace . "test_furnace", null,new CreativeInventoryInfo(CreativeInventoryInfo::CATEGORY_CONSTRUCTION, CreativeInventoryInfo::NONE),static fn($block) => BlockStateSerializerHelper::encodeFurnace($block, $namespace . "test_furnace", "minecraft:lit_furnace"), static fn($in) => CustomiesBlockFactory::getInstance()->get($namespace . "test_furnace")->setFacing($in->readHorizontalFacing())->setLit(false));
Furnace inventory is opening immediatly closing.
Create a new inventory with invmenu or something of the likes and use that instead of pocketmine furnace inventory.
Hi,
I've tried to register a new Furnace, I've the error below :
My test code is now as below :
My TestFurnace is as below :