Jump to content

[1.15.2] Block Rendering based on TileEntity Inventory’s ItemStack


Recommended Posts

Sorry for posting this as outdated 1.12.2 content but since I’m going to update sooner or later to 1.15.2 this is still relevant. I have a block with an inventory that consists of 6 slots, each slot for a face of the block. Now depending on what ItemStack is in a Slot I want to render an overlay on the corresponding face of the block. What would be the best approach to accomplish this?


Thanks in advance.

Link to comment
Share on other sites

8 minutes ago, Razzokk said:

outdated 1.12.2 content but since I’m going to update sooner or later to 1.15.2 this is still relevant

I don't think it will be, lots of rendering changes from 1.12 -> 1.15.


You should just start working with 1.15.2 now, as 1.12 is not supported in any way, and this thread will get locked once a moderator sees it.

Link to comment
Share on other sites

2 minutes ago, Razzokk said:

Thank you, yeah that is why I am asking for 1.15 now cause I would like to know an opinion/how others would approach this problem.

Ah ok, I misunderstood you I think, I thought you were still asking about 1.12 and figuring it would be the same as 1.15.

Unfortunately, besides having read that a lot changed with rendering, I haven't done a whole lot myself, so cannot be much help to you, sorry!

Although you could check out this link, it has a lot of the 1.13+ changes, and a link to 1.15 changes that include some of the rendering stuff, so it may be helpful: https://gist.github.com/williewillus/353c872bcf1a6ace9921189f6100d09a

Link to comment
Share on other sites



A TileEntityRenderer is definitely the best way to go about this one.

The renderer can ask the tileentity what is in its inventory, and alter the rendering based on that.


You might find this tutorial project useful, it has a few working examples of TileEntityRenderers




Link to comment
Share on other sites

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.

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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