execute if entity @n[tag=collected_powerup,tag=strength] run function pctf:logic/game/powerup/collect/strength
execute if entity @n[tag=collected_powerup,tag=coin] run function pctf:logic/game/powerup/collect/coin
execute if entity @n[tag=collected_powerup,tag=gem] run function pctf:logic/game/powerup/collect/gem
execute if entity @n[tag=collected_powerup,tag=heal] run function pctf:logic/game/powerup/collect/heal
execute if entity @n[tag=collected_powerup,tag=absorb] run function pctf:logic/game/powerup/collect/absorb
execute if entity @n[tag=collected_powerup,tag=upgrade] run function pctf:logic/game/powerup/collect/upgrade
execute if entity @n[tag=collected_powerup,tag=jump] run function pctf:logic/game/powerup/collect/jump
execute if entity @n[tag=collected_powerup,tag=bridge_snowball] run function pctf:logic/game/powerup/collect/bridge_snowball

particle minecraft:poof ~ ~ ~ 0 0 0 0.5 100 normal @a
playsound minecraft:block.trial_spawner.ominous_activate player @a ~ ~ ~ 2 1.25
effect give @s minecraft:saturation 1 1 true

kill @n[type=item_display,tag=collected_powerup]