execute as @a[scores={checkpoint=20,checkpoint_between_20=1}] at @s positioned -6 94 41 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=20,checkpoint_between_20=1}] at @s positioned -6 94 41 if entity @s[distance=..2] run spawnpoint @s -6 94 41 -117.92 0
execute as @a[scores={checkpoint=20,checkpoint_between_20=1}] at @s positioned -6 94 41 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_20 2



execute as @a[scores={checkpoint=20,checkpoint_between_20=0}] at @s positioned -24 89 41 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=20,checkpoint_between_20=0}] at @s positioned -24 89 41 if entity @s[distance=..2] run spawnpoint @s -24 89 41 255.24 0
execute as @a[scores={checkpoint=20,checkpoint_between_20=0}] at @s positioned -24 89 41 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_20 1



execute as @a[scores={checkpoint=20}] at @s run execute positioned -17 89 43 if entity @s[scores={checkpoint=20},distance=..2] run item replace entity @s armor.feet with leather_boots[enchantments={"minecraft:binding_curse":1}] 1
execute as @a[scores={checkpoint=20}] at @s run execute positioned -5 92 36 if entity @a[scores={checkpoint=20},distance=..3] run item replace entity @s armor.feet with air 1

execute as @a[scores={checkpoint=20}] at @s run execute positioned -4 94 37 if entity @s[scores={checkpoint=20},tag=20l_h,distance=12..] run tag @s remove 20l_h
execute as @a[scores={checkpoint=20}] at @s run execute positioned -2 93 31 if entity @s[scores={checkpoint=20},distance=..1] run tag @s remove 20l_h
execute as @a[scores={checkpoint=20}] at @s run execute positioned -6 95 40 if entity @s[scores={checkpoint=20},distance=..2] run tag @s add 20l_h
execute as @a[scores={checkpoint=20}] at @s run execute if entity @s[scores={checkpoint=20},tag=20l_h] if block -1 93 39 minecraft:air run execute positioned -4 94 37 run playsound minecraft:entity.item.pickup block @a[distance=..6] -4 94 37 11 1
execute as @a[scores={checkpoint=20}] at @s run execute unless entity @s[scores={checkpoint=20},tag=20l_h] run fill -1 93 39 -1 96 34 minecraft:air replace minecraft:honey_block
execute as @a[scores={checkpoint=20}] at @s run execute as @s[scores={checkpoint=20},tag=20l_h] run fill -1 93 39 -1 96 34 minecraft:honey_block replace minecraft:air


#20009 20010 20011 20012

execute positioned -1 92 47 if entity @a[distance=..2] unless score 20009 timer_an matches 2 run scoreboard players set 20009 timer_an 1
execute if score 20009 timer_an matches 1 run scoreboard players add 20010 timer_an 1

execute if score 20010 timer_an matches 5 run setblock -5 93 46 minecraft:snow[layers=2]
execute if score 20010 timer_an matches 5 run execute positioned -5 93 46 run playsound minecraft:entity.item.pickup block @a[distance=..6] -5 93 46 1111 1

execute if score 20010 timer_an matches 70 run scoreboard players set 20009 timer_an 2

execute if score 20009 timer_an matches 2 run execute positioned -5 93 46 unless entity @a[distance=..5] run scoreboard players set 20011 timer_an 1

execute if score 20011 timer_an matches 1.. run scoreboard players add 20012 timer_an 1

execute if score 20012 timer_an matches 5 run setblock -5 93 46 air
execute if score 20012 timer_an matches 5 run execute positioned -5 93 46 run playsound minecraft:entity.item.pickup block @a[distance=..6] -5 93 46 1111 1

execute if score 20012 timer_an matches 30 run scoreboard players reset 20009 timer_an
execute if score 20012 timer_an matches 30 run scoreboard players reset 20010 timer_an
execute if score 20012 timer_an matches 30 run scoreboard players reset 20011 timer_an
execute if score 20012 timer_an matches 30 run scoreboard players reset 20012 timer_an




#20005 20006 20007 20008

execute positioned 3 89 37 if entity @a[distance=..2] unless score 20005 timer_an matches 2 run scoreboard players set 20005 timer_an 1
execute if score 20005 timer_an matches 1 run scoreboard players add 20006 timer_an 1

execute if score 20006 timer_an matches 1 run setblock 2 90 39 minecraft:snow[layers=2]
execute if score 20006 timer_an matches 1 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20006 timer_an matches 20 run setblock 5 90 40 minecraft:snow[layers=2]
execute if score 20006 timer_an matches 20 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20006 timer_an matches 40 run setblock 7 90 42 minecraft:snow[layers=2]
execute if score 20006 timer_an matches 40 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20006 timer_an matches 60 run setblock 5 90 45 minecraft:snow[layers=2]
execute if score 20006 timer_an matches 60 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20006 timer_an matches 80 run setblock 3 91 47 minecraft:snow[layers=2]
execute if score 20006 timer_an matches 80 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1


execute if score 20006 timer_an matches 81 run scoreboard players set 20005 timer_an 2

execute if score 20005 timer_an matches 2 run execute positioned 3 90 43 unless entity @a[distance=..5] run scoreboard players set 20007 timer_an 1

execute if score 20007 timer_an matches 1.. run scoreboard players add 20008 timer_an 1

execute if score 20008 timer_an matches 1 run setblock 2 90 39 air
execute if score 20008 timer_an matches 1 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20008 timer_an matches 20 run setblock 5 90 40 air
execute if score 20008 timer_an matches 20 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20008 timer_an matches 40 run setblock 7 90 42 air
execute if score 20008 timer_an matches 40 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20008 timer_an matches 60 run setblock 5 90 45 air
execute if score 20008 timer_an matches 60 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20008 timer_an matches 80 run setblock 3 91 47 air
execute if score 20008 timer_an matches 80 run execute positioned 3 90 43 run playsound minecraft:entity.item.pickup block @a[distance=..7] 3 90 43 11 1

execute if score 20008 timer_an matches 80 run scoreboard players reset 20005 timer_an
execute if score 20008 timer_an matches 80 run scoreboard players reset 20006 timer_an
execute if score 20008 timer_an matches 80 run scoreboard players reset 20007 timer_an
execute if score 20008 timer_an matches 80 run scoreboard players reset 20008 timer_an









#20001 20002 20003 20004

execute positioned 1 86 31 if entity @a[distance=..3] unless score 20001 timer_an matches 2 run scoreboard players set 20001 timer_an 1
execute if score 20001 timer_an matches 1 run scoreboard players add 20002 timer_an 1

execute if score 20002 timer_an matches 5 run setblock 1 86 33 minecraft:snow[layers=5]
execute if score 20002 timer_an matches 5 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20002 timer_an matches 25 run setblock 4 87 32 minecraft:snow[layers=2]
execute if score 20002 timer_an matches 25 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20002 timer_an matches 45 run setblock 8 87 33 minecraft:snow[layers=2]
execute if score 20002 timer_an matches 45 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20002 timer_an matches 75 run setblock 7 88 36 minecraft:snow[layers=2]
execute if score 20002 timer_an matches 75 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1


execute if score 20002 timer_an matches 76 run scoreboard players set 20001 timer_an 2

execute if score 20001 timer_an matches 2 run execute positioned 4 87 34 unless entity @a[distance=..5] run scoreboard players set 20003 timer_an 1

execute if score 20003 timer_an matches 1.. run scoreboard players add 20004 timer_an 1

execute if score 20004 timer_an matches 5 run setblock 1 86 33 air
execute if score 20004 timer_an matches 5 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20004 timer_an matches 20 run setblock 4 87 32 air
execute if score 20004 timer_an matches 20 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20004 timer_an matches 40 run setblock 8 87 33 air
execute if score 20004 timer_an matches 40 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20004 timer_an matches 50 run setblock 7 88 36 air
execute if score 20004 timer_an matches 50 run execute positioned 4 87 35 run playsound minecraft:entity.item.pickup block @a[distance=..6] 4 87 35 1111 1

execute if score 20004 timer_an matches 50 run scoreboard players reset 20001 timer_an
execute if score 20004 timer_an matches 50 run scoreboard players reset 20002 timer_an
execute if score 20004 timer_an matches 50 run scoreboard players reset 20003 timer_an
execute if score 20004 timer_an matches 50 run scoreboard players reset 20004 timer_an