execute positioned 484.53 98.38 -999.45 run kill @e[type=!player,distance=0..6]
fill 488 103 -995 479 97 -1005 air
fill 488 104 -996 479 104 -1004 air

#Structure
fill 491 96 -1000 491 97 -1000 air
$setblock 491 96 -1000 minecraft:structure_block[mode=load]{ignoreEntities:0b,mode:"LOAD",name:"subchronos:preview/$(id)",posX:-12,posY:0,posZ:-5,showboundingbox:0b,sizeX:13,sizeY:9,sizeZ:11,strict:0b} replace
setblock 491 97 -1000 redstone_block replace

#Title
    kill @e[type=text_display,tag=map_title]
    $summon text_display 491.00 103.4 -999.51 {Rotation:[-90f,0f],Tags:["map_title"],billboard:"fixed",text:{"color":"#cc22ee","fallback":"$(name)","italic":false,"translate":"subchronos.lobby.map$(id)","shadow_color":-12249508},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,2f,2f]},background:16711680}
    $summon text_display 491.00 103.1 -999.51 {Rotation:[-90f,0f],Tags:["map_title"],billboard:"fixed",text:{"color":"#cc22ee","text":"$(teams)","italic":false,"shadow_color":-12249508},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1f,1f,1f]},background:16711680}

execute positioned 484.53 98.38 -999.45 run stopsound @a[distance=..12] block