execute positioned 500.49 101.50 -990.00 at @e[type=minecraft:block_display,tag=lobby.button] run kill @n[distance=0..1,type=interaction,tag=lobby.button]
execute positioned 500.49 101.50 -990.00 as @e[type=minecraft:block_display,tag=lobby.button,distance=0..20] on passengers run kill @s
execute positioned 500.49 101.50 -990.00 as @e[type=minecraft:block_display,tag=lobby.button,distance=0..20] run kill @s


#Opions
    execute positioned 504.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/supply_drops/click"}
    execute positioned 503.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/special_items/click"}
    execute positioned 502.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/initial_kit/click"}
    execute positioned 501.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/time_explosion/click"}
    
    execute positioned 499.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/barrel_refill/click"}
    execute positioned 498.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/op/click"}
    execute positioned 497.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/time_set/click"}
    execute positioned 496.48 101.48 -990.00 align xyz positioned ~.5 ~-.565 ~ run function subchronos:lobby/options/button/_/create {"function":"subchronos:lobby/options/stats"}


#Map
    execute positioned 493.00 101.52 -995.49 align xyz positioned ~ ~-.565 ~.5 run function subchronos:lobby/options/button/_/create_rotated {"function":"subchronos:lobby/options/random_map/click"}
    execute positioned 493.00 101.52 -1003.49 align xyz positioned ~ ~-.565 ~.5 run function subchronos:lobby/options/button/_/create_rotated {"function":"subchronos:lobby/options/teams_mode/click"}

function subchronos:lobby/map_selector/load_structure