Posted December 15, 201410 yr Hello everyone, I've made a custom chest that extends BlockChest, and the TileEntitySpecialRenderer for it. I used the vanilla "chest.json" for my item texture model, but in-game, it still shows up as a regular chest in my inventory, even though when I place it down, it renders correctly. What should I change in the file to make it show up correctly? My chest's class: https://github.com/Geforce132/SecurityCraft/blob/master/1.8/src/main/java/org/freeforums/geforce/securitycraft/blocks/BlockKeypadChest.java My TileEntitySpecialRenderer class: https://github.com/Geforce132/SecurityCraft/blob/master/1.8/src/main/java/org/freeforums/geforce/securitycraft/tileentity/TileEntityKeypadChestRenderer.java Thanks for reading! ~Geforce Potato's have skin. I have skin. Therefore, i am a potato. Follow me on Twitter! http://www.twitter.com/I_Mod_Minecraft
December 16, 201410 yr Hi You are extending BlockChest which uses a custom render type hardwired for drawing a normal chest when it's being rendered as an item. The best way for you is probably to use an ISimpleBlockRenderingHandler, last time I checked (quite a while ago admittedly) there are a few tutorials around. It has two render methods - one for rendering as an item, and one for the block render when placed (the TileEntitySpecialRenderer is also called in addition to the ISBRH block render method). An IItemRenderer is also possible, just a bit more complicated. It is used for the "item" views only, not when placed. Some more info here under the Item Rendering sections http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html -TGG
December 16, 201410 yr Both of those are gone in 1.8. What I did is make an ordinary item json and copy the shape of a chest, but I think the IronChest mod has gotten it to work. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
December 16, 201410 yr Both of those are gone in 1.8. What I did is make an ordinary item json and copy the shape of a chest, but I think the IronChest mod has gotten it to work. ah yeah, next time I should better read the title huh. Still working on figuring out 1.8 rendering myself, no help from me sorry. -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.