execute unless entity @s[gamemode=creative] run item modify entity @s weapon.mainhand pctf:remove1
summon marker ~ ~0.5 ~ {Tags:["check_proj","trap_kit","new"],CustomName:'"trap_kit"'}

tag @s add temp
execute if entity @s[team=blue] as @n[tag=trap_kit,tag=new] run tag @s add blue
execute if entity @s[team=red] as @n[tag=trap_kit,tag=new] run tag @s add red
tag @s remove temp

tag @n[tag=new] remove new

playsound minecraft:block.chest.close player @a ~ ~ ~ 2 2

scoreboard players set @s item_cooldown 8