$kill @n[tag=yellow_flag,scores={map_id=$(map_id)}]
$execute at @n[tag=yellow_flag_location,scores={map_id=$(map_id)}] run summon block_display ~ ~1 ~ {teleport_duration:1,Glowing:1b,glow_color_override:16776960,view_range:0.8f,Tags:["new","flag_group","flag","yellow_flag","end_delete"],CustomName:{"color":"yellow","text":"yellow_flag$(map_id)"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.5f,-0.5f],scale:[1f,1f,1f]},block_state:{Name:"minecraft:yellow_wool"}}
$execute as @n[tag=yellow_flag,tag=new] run scoreboard players set @s map_id $(map_id)
execute as @n[tag=yellow_flag,tag=new] run tag @s remove new
function pctf:create_game_object/interaction/yellow with storage pctf:map input

team modify yellow_wool prefix {"text":"☐ ","color":"yellow"}