tp @s ~ ~ ~ ~5 ~
execute if entity @s[tag=dropped] run particle minecraft:end_rod ~ ~ ~ 3 3 3 0 1 force @a

execute if entity @s[tag=green_flag] run particle minecraft:dust{color:[0.200,1.000,0.000],scale:0.75} ^ ^ ^1 0 0 0 0 1 normal
execute if entity @s[tag=green_flag] run particle minecraft:dust{color:[0.200,1.000,0.000],scale:0.75} ^ ^ ^-1 0 0 0 0 1 normal

execute if entity @s[tag=light_purple_flag] run particle minecraft:dust{color:[1.000,0.000,0.600],scale:0.75} ^ ^ ^1 0 0 0 0 1 normal
execute if entity @s[tag=light_purple_flag] run particle minecraft:dust{color:[1.000,0.000,0.600],scale:0.75} ^ ^ ^-1 0 0 0 0 1 normal

execute if entity @s[tag=aqua_flag] run particle minecraft:dust{color:[0.000,0.800,1.000],scale:0.75} ^ ^ ^1 0 0 0 0 1 normal
execute if entity @s[tag=aqua_flag] run particle minecraft:dust{color:[0.000,0.800,1.000],scale:0.75} ^ ^ ^-1 0 0 0 0 1 normal

execute if entity @s[tag=yellow_flag] run particle minecraft:dust{color:[1.000,0.800,0.000],scale:0.75} ^ ^ ^1 0 0 0 0 1 normal
execute if entity @s[tag=yellow_flag] run particle minecraft:dust{color:[1.000,0.800,0.000],scale:0.75} ^ ^ ^-1 0 0 0 0 1 normal

execute if entity @s[tag=dropped] run scoreboard players add @s generic_timer 1

execute if score @s generic_timer matches 300.. run function pctf:logic/game/flag/return