CraftTweaker allows modpacks and servers to customize the game. With CraftTweaker you can change recipes, script events, add new commands and even change item properties!
Changes the durability of any item. Works server-side only but will desync the durability that appears to the player (For sychronized durability install it in the client side too)