How to "repair" item

Started by mrk_sn on

Topic category: Help with Minecraft modding (Java Edition)

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