Topic category: Help with modding (Java Edition)
It seems fairly easy. Just put the item in an anvil and set the repair item, but I want to set up a different system. In said system, items will slowly repair, but for free. The problem is, I don't know how to restore durability. Just sacrificing an item and giving a completely new one is the easy way, but that's not what I'm interested in. For example, after a trigger happens, like right-clicking or something, 1 use will be restored to the item in hand.