how to compare item durability & change image w/ procedure

Started by Icode2U on

Topic category: Help with modding (Java Edition)

Last seen on 13:24, 9. Sep 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to compare item durability & change image w/ procedure

How do i compare a items durability to change its image (which i also need help) with procedures

Last seen on 01:36, 16. Sep 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If its an item use item…
Mon, 09/09/2024 - 23:33

If its an item use item states, if its a tool or an armour then i think you would need to create a second damaged version with the same durability and then add damage to the item to keep its same durability level. The first set would need to be removed and replaced from the inventory so you might want to check for which slots they're in and replace it with the second item set in the same slot to make it look as if its the same item. Use the get damage of item procedure to find the durability.