Jump to content

[1.6.4] Change icon texture based on its state


Camulorix

Recommended Posts

Hi,

 

I want to change the texture of an item based on the state of the item. To be more specific: I have an empty item and when I right click on a mob, it gets filled.

The texture for the filled item is only visible when I hold it in my hands. In the inventory or a chest or when it is lying on the ground, the game uses the texture for the empty item.

 

Currently I'm using getIcon() to return the icon I want to use. Both textures are set using registerIcons().

What did I miss or how can I achieve what I want?

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.

Announcements



×
×
  • Create New...

Important Information

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