$kill @n[tag=aqua_flag,scores={map_id=$(map_id)}]
$execute at @n[tag=aqua_flag_location,scores={map_id=$(map_id)}] run summon block_display ~ ~1 ~ {teleport_duration:1,Glowing:1b,glow_color_override:43775,view_range:0.8f,Tags:["new","flag_group","flag","aqua_flag","end_delete"],CustomName:{"color":"aqua","text":"aqua_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:light_blue_wool"}}
$execute as @n[tag=aqua_flag,tag=new] run scoreboard players set @s map_id $(map_id)
execute as @n[tag=aqua_flag,tag=new] run tag @s remove new
function pctf:create_game_object/interaction/aqua with storage pctf:map input

team modify aqua_wool prefix {"text":"☐ ","color":"aqua"}