How to "repair" item

Started by mrk_sn on

Topic category: Help with modding (Java Edition)

Last seen on 18:19, 14. Feb 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to "repair" item
Mon, 02/06/2023 - 16:25 (edited)

Hello

I have a problem with my mod. I need to repair an item in my main hand. I tried a negative value in "deal damage" block. And also tried set damage of item "current damage - heal amount". Can someone help me how to do it correctly?

 

Edited by mrk_sn on Mon, 02/06/2023 - 16:25
Last seen on 01:31, 14. Mar 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Something like this should…
Mon, 02/06/2023 - 16:43

Something like this should work..