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?