execute positioned ~ ~1 ~ unless entity @e[type=item_display,tag=powerup,distance=..2] if entity @p[distance=..250,gamemode=!spectator,tag=playing] run scoreboard players add @s generic_timer2 1
execute if score @s generic_timer2 matches 1800.. run function pctf:logic/game/powerup/new