execute align xz run tp @s ~0.5 ~ ~0.5
$execute at @s if entity @n[scores={map_id=$(map_id)},distance=..1] run return run tellraw @s ["",{"text":"There is already a marker here! (","color":"red"},{"selector":"@n[scores={map_id=$(map_id)},distance=..1]","color":"yellow"},{"text":")","color":"red"}]
execute at @s unless block ~ ~-1 ~ minecraft:gold_block run return run tellraw @s {"text":"You must be standing on gold_block!","color":"dark_red"}
$kill @n[tag=blue_flag_dropoff,scores={map_id=$(map_id)}]
$execute at @s run summon marker ~ ~ ~ {Tags:["flag_dropoff","blue_flag_dropoff","new"],CustomName:{"color":"blue","text":"blue_flag_dropoff$(map_id)"}}
$scoreboard players set @n[tag=new] map_id $(map_id)
tag @n[tag=new] remove new
$tellraw @s {"text":"Placed new blue flag_dropoff for map $(map_id)","color":"blue"}