tag @s add collected_powerup
execute positioned ~ ~-1 ~ as @p[gamemode=!spectator,tag=playing,distance=..1.5] positioned ~ ~0.75 ~ run function pctf:logic/game/powerup/collect/check
tag @s remove collected_powerup

tp @s ~ ~ ~ ~5 ~
particle minecraft:electric_spark ~ ~-0.5 ~ 0.5 0.5 0.5 0 1 normal @a