Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.