Posted November 21, 201510 yr I've set up a block with a TileEntitySpecialRenderer which renders fine when I place it in the world, however I have no idea how to make it render in an inventory (It's currently a block with the missing texture in an inventory). How would I do this? If it's not possible, then how do I make it so that a block renders as a 2D item in an inventory? Thanks
November 21, 201510 yr Can you show some of the code that makes this TESR object? I know that for an item you would make it render in the inventory via: Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(modid + ":" + item.getUnlocalizedName().substring(5), "inventory")); Can't you shove your TESR object in that somewhere? If it's a block use Item.getItemFromBlock(blockObject) in place of the 'item' field. https://www.akliz.net/manage/aff.php?aff=179 coupon: kreezxil KreezCraft.com - Twitch.TV/Kreezxil - YouTube.com/Kreezxil
November 21, 201510 yr Author Ah, thanks - That did get it to render as an item. As for the TESR code, it's pretty much the same as this , but adapted to work with a TESR, rather than on an entity http://jabelarminecraft.blogspot.co.uk/p/minecraft-forge-172-quick-tips-gl11-and.html
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.