Started by
AvizvulGenesis
on
Topic category: Help with Minecraft modding (Java Edition)
I made an armor set and a weapon with the same material. And I want to make ability to repair armor on hit of the weapon. But everything I've been doing doesn't work
Edited by AvizvulGenesis on Sat, 04/02/2022 - 07:08
On the first procedure, say :
Set NBT tag [armorVamp] true
wait [number (try with 1)] tick
Set NBT tag [armorVamp] false
On the second procedure, say :
If NBT tag [armorVamp] true for item in event/target entity hand
Set [item in slot 2] durability to [item in slot 2] durability + [number]