kill @e[tag=lobby]

# spawnpoint
spawnpoint @a 5 52 0

# mapmaker
function lobby:mapmaker/summon


# ------------------- Selectors button -------------------------

function lobby:info/summon
function lobby:generate/summon
execute if score tutorial state matches 1 if score floor dungeon matches 1 run function lobby:floor_sel/summon
execute if score tutorial state matches 1 unless score floor dungeon matches 1 run function lobby:run_settings/summon
function lobby:clk_config/info
function lobby:clk_config/clear/summon
function lobby:clk_config/generation/summon
function lobby:clk_config/map_update/summon
function lobby:shop/summon
execute if score floor dungeon matches 1 run function lobby:difficulty/summon
function lobby:other/summon
function lobby:stats/summon

execute as @e[tag=selector] run data merge entity @s {Silent:1,Health:100,Attributes:[{Name:"generic.max_health",Base:100.0d}],PersistenceRequired:1b,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],DeathLootTable:"minecraft:empty"}
execute as @e[tag=lobby] run data merge entity @s {CustomNameVisible:1b}

team join no_colision @e[tag=selector]

advancement revoke @a only items:inv_update lock
