Topic category: Help with modding (Java Edition)
First of all, before anyone comments "just set the durability to zero," no, that's not what I want. I want a melee weapon with very limited durability that still stays in your inventory when it breaks, and you just can't use it until the durability is replenished or "reloaded" with a certain item by hitting a key (I kinda know how keybinds work) with the weapon in your hand, which depletes the count of said specific item by one, and in turn heals the durability of the weapon by one.
I really hope I can get some help in order to achieve something at least remotely similar to this idea. Anything's appreciated, thanks.