function parkour_pyramid:spawn/options/main
function parkour_pyramid:spawn/intro/main
execute if block -9 82 -2 #minecraft:buttons[powered=true] run function parkour_pyramid:spawn/changemap
execute if block -9 82 -6 #minecraft:buttons[powered=true] run function parkour_pyramid:spawn/changemap
execute as @e[type=item_frame,tag=spawnFrame] run data merge entity @s {ItemRotation:0}

tag @a[x=11,y=73,z=-17,dx=-24,dy=18,dz=25,scores={onGround=1..}] add spawn

tag @a[tag=spawn] remove ingame
execute as @a[tag=spawn] at @s positioned ~ 79.9 ~ as @s[distance=..1] run tag @s add intro

execute positioned 0 81 -13 if block ~ ~ ~ #minecraft:buttons[powered=true] if entity @e[type=armor_stand,name=console,tag=!credit,limit=1] run function parkour_pyramid:spawn/hielke 
execute if block 0 81 -13 #minecraft:buttons[powered=false] run tag @e[type=armor_stand,name=console] remove credit