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

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.

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.

  • Author

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.

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

  • Author

Hmm maybe I‘ve just written it in a not understandable way ^^. Anyways thanks for the suggestion, I‘ll take a look at it.

Edited by Razzokk

Hi

 

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

https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe21_tileentityrenderer

-TGG

 

  • Author

Thanks for the advice, I'll take a look at those example, and then gonna try it out.

 

 

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.