A Fabric mod that lets you change the max durability of an item through an NBT tag. Very heavy inspiration from this Forge mod: Customizable Max Durability
Example 1 (A Command)
/give @s bow{maxDamage:1337}
Example 2 (A Datapack Recipe)
{
"type": "minecraft:crafting_shaped",
"pattern": [
" MS",
"M S",
" MS"
],
"key": {
"M": {
"item": "minecraft:iron_ingot"
},
"S": {
"item": "minecraft:string"
}
},
"result": {
"item": "minecraft:bow",
"count": 1,
"nbt": "{maxDamage:1337}"
}
}