Jump to content

Custom Block Rendering Based On NBT


7H3LaughingMan

Recommended Posts

I need help trying to figure a few things out and I figured I should ask this here. So I am working on my own mod and for one of my blocks it's going to have more then 16 types and so I am going to be categorizing the different types using NBT Data stored in the Tile Entities. However I need the individual types to have different looks based on the different types and if there is extra bits stored in the NBT. How would I got about having the block look for this information and choose different icons for the different sides based off NBT Data. I believe for the blocks being rendered when they are place within the world you would use getBlockTexture(), however to my understanding I would have to use custom Item Rendering to have the different appearances if the block is in one's inventory. Is there an example out there for this?

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.

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...

×   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.