execute as @a run function main:menu/reset
scoreboard players set .play music 0
tp @a 69 -57 9 -90 ~
tag @a add main_menu
tag @a remove ready_game
tag @a remove information
tag @a remove hub
tag @a remove admin_test
tag @a remove choice
tag @a remove reward_choice
tag @a remove shop_choice
tag @a remove artifact_chosen
worldborder warning distance 0
fill 76 -57 8 76 -54 10 light_blue_stained_glass
scoreboard objectives add ready dummy
scoreboard players set .countdown ready 0

kill @e[type=text_display,tag=lobby]
kill @e[type=block_display,tag=main_menu]
kill @e[type=#main:not_mob,tag=!smithed.entity]
bossbar remove goal
summon block_display 69 -57 9 {block_state:{Name:"minecraft:barrier"},Tags:["main_menu"]}
tp @e[type=block_display,tag=main_menu] 69 -57 9 -90 ~

# execute as @a[scores={player_id=1}] run summon text_display 73 -53.75 6 {alignment:"center",Rotation:[90F,0F],Tags:["lobby"],text:'{"color":"white","selector":"@n[scores={player_id=1}]"}'}
# execute as @a[scores={player_id=2}] run summon text_display 73 -54.75 6 {alignment:"center",Rotation:[90F,0F],Tags:["lobby"],text:'{"color":"white","selector":"@n[scores={player_id=2}]"}'}
# execute as @a[scores={player_id=3}] run summon text_display 73 -55.75 6 {alignment:"center",Rotation:[90F,0F],Tags:["lobby"],text:'{"color":"white","selector":"@n[scores={player_id=3}]"}'}
# execute as @a[scores={player_id=4}] run summon text_display 73 -56.75 6 {alignment:"center",Rotation:[90F,0F],Tags:["lobby"],text:'{"color":"white","selector":"@n[scores={player_id=4}]"}'}
# fill 72 -58 8 72 -53 6 black_stained_glass
#buttons
execute as @e[type=block_display,tag=main_menu] at @s run function main:menu/select/buttons/spawn

#music
scoreboard players set .play music 0