

execute as @a[scores={checkpoint=13,checkpoint_between_13=0}] at @s positioned 0 41 60 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=13,checkpoint_between_13=0}] at @s positioned 0 41 60 if entity @s[distance=..2] run spawnpoint @s 0 41 61 111.51 0
execute as @a[scores={checkpoint=13,checkpoint_between_13=0}] at @s positioned 0 41 60 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_13 1

execute as @a[scores={checkpoint=13,checkpoint_between_13=1}] at @s positioned 2 45 63 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=13,checkpoint_between_13=1}] at @s positioned 2 45 63 if entity @s[distance=..2] run spawnpoint @s 2 45 63 29.42 0
execute as @a[scores={checkpoint=13,checkpoint_between_13=1}] at @s positioned 2 45 63 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_13 2

#81 20 82 21
execute positioned -4 41 65 if entity @a[distance=..10] run scoreboard players set 82 timer 1
execute if score 82 timer matches 1.. run scoreboard players add 81 timer 1
execute if score 81 timer matches 1..31 run execute as @e[type=minecraft:armor_stand,tag=78] at @s run tp @s ~-0.1 ~ ~
execute if score 81 timer matches 31..61 run execute as @e[type=minecraft:armor_stand,tag=78] at @s run tp @s ~0.1 ~ ~
execute if score 81 timer matches 1..31 run execute as @e[type=minecraft:armor_stand,tag=79] at @s run tp @s ~0.1 ~ ~
execute if score 81 timer matches 31..61 run execute as @e[type=minecraft:armor_stand,tag=79] at @s run tp @s ~-0.1 ~ ~
execute if score 81 timer matches 1..31 run execute as @e[type=minecraft:armor_stand,tag=80] at @s run tp @s ~ ~ ~0.1
execute if score 81 timer matches 31..61 run execute as @e[type=minecraft:armor_stand,tag=80] at @s run tp @s ~ ~ ~-0.1
execute if score 81 timer matches 1..31 run execute as @e[type=minecraft:armor_stand,tag=81] at @s run tp @s ~0.1 ~ ~
execute if score 81 timer matches 31..61 run execute as @e[type=minecraft:armor_stand,tag=81] at @s run tp @s ~-0.1 ~ ~
execute if score 81 timer matches 1..31 run execute as @e[type=minecraft:armor_stand,tag=82] at @s run tp @s ~ ~ ~0.1
execute if score 81 timer matches 31..61 run execute as @e[type=minecraft:armor_stand,tag=82] at @s run tp @s ~ ~ ~-0.1
execute if score 81 timer matches 61.. run scoreboard players reset 82 timer
execute if score 81 timer matches 61.. run scoreboard players reset 81 timer