Damage item
execute as @a if items entity @s weapon.mainhand iron_pickaxe[custom_model_data={strings:["bottle"]}] runwhat command would then damage that item by a specified amount
execute as @a if items entity @s weapon.mainhand iron_pickaxe[custom_model_data={strings:["bottle"]}] runwhat command would then damage that item by a specified amount