Unbreakable Tools

Hi i want to make a datapack where if it detects an iron axe (or any other tool) it will remove the tool and give the tool Unbreakable 1 and damage 1 (the command looks for damage 0)

execute as @a[nbt={Inventory:[{id:"minecraft:iron_axe",Count:1b,tag:{Damage:0}}]}] run clear @a minecraft:iron_axe 1

only code i have for now ^

Continue to help post