How do you set durability AND add a enchant onto a item? [duplicate]
To add damage to an item in a give command, you use the Damage
nbt tag before enchantments. Use a number that represents the number of durability lost from the max. Example:
/give @p diamond_sword{Damage:10,Enchantments:[{id:"minecraft:STUFF",lvl:SOMETHING},{id:"minecraft:STUFF",lvl:SOMETHING}]}