scoreboard players reset @s drank
clear @s glass_bottle

execute if entity @s[nbt={active_effects:[{id:"minecraft:unluck", amplifier: 10b}]}] run function pctf:logic/player/potion/invisibility/start {ticks: 400, seconds: 20}
execute if entity @s[nbt={active_effects:[{id:"minecraft:unluck", amplifier: 11b}]}] run function pctf:logic/player/potion/gravity/start
execute if entity @s[nbt={active_effects:[{id:"minecraft:unluck", amplifier: 12b}]}] run function pctf:logic/player/potion/knockback_resistance/start