Posted April 12, 20196 yr After I coded corresponding codes for a custom furnace, the program always crashes and console showed such crash report. I really appreciate it if someone can handle my confusion crash-2019-04-12_17.53.14-client.txt
April 12, 20196 yr Author and these are TestFurnace and EventSubscriber class TestFurnace.java EventSubscriber.java
April 12, 20196 yr Why did you upload your code as files here? Use github. Quote public class TestFurnace extends Block implements ITileEntityProvider Don't implement ITileEntityProvider, this interface is not needed. Just override Block#hasTileEntity and Block#createTileEntity You don't need the setState method. Just override TileEntity#shouldRefresh. The fact that you are using InventoryHelper.dropInventoryItems makes me suspicious of your TileEntity implementing IInventory. Never implement IInventory, use capabilities instead. @Override public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } Why? Block#getRenderType already returns MODEL. as for your issue: You have never told the block state container that your block has the BURNING property associated with it in Block#createBlockState. You must put all the properties you wish to use there. Additionally you are not (de)serializing your BURNING property in getStateFromMeta nor getMetaFromState. You must do it in order for the property to persist.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.