spawnpoint @a 40 148 104
execute if entity @p[x=6.5,y=-200,z=13.5,dy=1000] run gamemode adventure @p[x=6.5,y=-200,z=13.5,dy=1000]
execute if entity @p[x=6.5,y=-200,z=13.5,dy=1000] run tp @p[x=6.5,y=-200,z=13.5,dy=1000] 40.53 148.00 104.48 -90 0

execute as @a if score @s lobbyReturn matches 1.. run function button:level/returnlobby
execute if entity @p[x=-41,y=41,z=134,dx=41,dy=4,dz=41] run effect give @p[x=-41,y=41,z=134,dx=41,dy=4,dz=41] minecraft:levitation 1 6 true
execute if entity @p[x=-41,y=62,z=134,dx=41,dy=4,dz=41] run effect give @p[x=-41,y=62,z=134,dx=41,dy=3,dz=41] minecraft:levitation 1 4 true

execute if block 40 149 101 #minecraft:buttons[powered=true] run function button:level/level1
execute if block 19 55 102 #minecraft:buttons[powered=true] run function button:level/level2
execute if block 7 48 98 #minecraft:buttons[powered=true] run function button:level/level3
execute if block -7 48 99 #minecraft:buttons[powered=true] run function button:level/level4
execute if block -14 52 106 #minecraft:buttons[powered=true] run function button:level/level5
execute if block -29 52 106 #minecraft:buttons[powered=true] run function button:level/level6
execute if block -44 56 100 #minecraft:buttons[powered=true] run function button:level/level7
execute if block -58 55 98 #minecraft:buttons[powered=true] run function button:level/level8
execute if block -67 55 98 #minecraft:buttons[powered=true] run function button:level/level9
execute if block -80 48 97 #minecraft:buttons[powered=true] run function button:level/level10
execute if block -86 53 101 #minecraft:buttons[powered=true] run function button:level/level11
execute if block -64 46 117 #minecraft:buttons[powered=true] run function button:level/level12
execute if block -49 38 111 #minecraft:buttons[powered=true] run function button:level/level13
execute if block -32 52 112 #minecraft:buttons[powered=true] run function button:level/level14
execute if block 8 48 123 #minecraft:buttons[powered=true] run function button:level/level15
execute if block -11 53 124 #minecraft:buttons[powered=true] run function button:level/level16
execute if block -59 55 123 #minecraft:buttons[powered=true] run function button:level/level17
execute if block -67 63 127 #minecraft:buttons[powered=true] run function button:level/level18
execute if block -87 51 135 #minecraft:buttons[powered=true] run function button:level/level19
execute if block 13 47 150 #minecraft:buttons[powered=true] run function button:level/level20
execute if block -32 55 152 #minecraft:buttons[powered=true] run function button:level/level21
