Damage item

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

Continue to help post