setblock -9 82 -2 minecraft:birch_button[face=wall,facing=east,powered=false]
setblock -9 82 -6 minecraft:birch_button[face=wall,facing=east,powered=false]

#switch map tag
tag @e[type=minecraft:armor_stand,name=console,tag=map1] add temp1
tag @e[type=minecraft:armor_stand,name=console,tag=map2] add temp2

tag @e[type=minecraft:armor_stand,name=console,tag=temp1] remove map1
tag @e[type=minecraft:armor_stand,name=console,tag=temp1] add map2
tag @e[type=minecraft:armor_stand,name=console,tag=temp1] remove temp1

tag @e[type=minecraft:armor_stand,name=console,tag=temp2] remove map2
tag @e[type=minecraft:armor_stand,name=console,tag=temp2] add map1
tag @e[type=minecraft:armor_stand,name=console,tag=temp2] remove temp2

#change map
execute if entity @e[type=minecraft:armor_stand,name=console,tag=map1] run function parkour_pyramid:spawn/parkour_spiral
execute if entity @e[type=minecraft:armor_stand,name=console,tag=map2] run function parkour_pyramid:spawn/parkour_spiral_2