I need to execute a command as I drink a water bottle. I have made a scoreboard already.
scoreboard objectives add drinkPotion minecraft.used:minecraft.potion
But, the execute command that I used doesn't work because as I drink the potion, it turns into a glass bottle. (Water bottle is considered as a potion)
execute as @a[nbt={SelectedItem:{id:"minecraft:potion",tag:{Potion:"minecraft:water"}}},scores={drinkPotion=1..}] run command
Do any of you have a solution for this?