Posted November 9, 20169 yr Hey I was wondering if this is a common error or I should supply code for my tile entity. As soon as I turned my block into a tile entity its started doing this It displays the tile entities name, a particle from my campfirerenderer, but the model no longer appears. I've looked through my files, and done a comparison with a furnature mod https://github.com/MrCrayfish/MrCrayfishFurnitureMod/tree/master/1.10/src/main/java/com/mrcrayfish/furniture 1.10 mod doing something similar but I can't seem to find the problem ] Thanks!
November 9, 20169 yr I would suspect that your block extends BlockContainer. You shouldn't be doing that. Block has a method called createTileEntity(World world, IBlockState state) which replaces createNewTileEntity(World world, int meta) from ITileEntityProvider which is implemented by BlockContainer. Don't forget to override hasTileEntity(World world, IBlockState state) to return true, else createTileEntity() won't be called.
November 9, 20169 yr Hi You could try looking at this tutorial example, it does pretty much exactly what I think you're looking for (draws a base block and a renderer as well) https://github.com/TheGreyGhost/MinecraftByExample see mbe21 -TGG
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.