execute as @a[scores={checkpoint=14,checkpoint_between_14=0}] at @s positioned 9 46 60 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=14,checkpoint_between_14=0}] at @s positioned 9 46 60 if entity @s[distance=..2] run spawnpoint @s 9 46 60 0 0
execute as @a[scores={checkpoint=14,checkpoint_between_14=0}] at @s positioned 9 46 60 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_14 1

execute as @a[scores={checkpoint=14,checkpoint_between_14=1}] at @s positioned 4 50 57 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=14,checkpoint_between_14=1}] at @s positioned 4 50 57 if entity @s[distance=..2] run spawnpoint @s 3 49 58 86.79 0
execute as @a[scores={checkpoint=14,checkpoint_between_14=1}] at @s positioned 4 50 57 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_14 2

execute as @a[scores={checkpoint=14,checkpoint_between_14=2}] at @s positioned 2 56 64 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=14,checkpoint_between_14=2}] at @s positioned 2 56 64 if entity @s[distance=..2] run spawnpoint @s 2 56 64 410.17 0
execute as @a[scores={checkpoint=14,checkpoint_between_14=2}] at @s positioned 2 56 64 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_14 3


execute positioned -6 58 67 if entity @a[distance=..10] run scoreboard players set 3082 timer 1
execute if score 3082 timer matches 1.. run scoreboard players add 3081 timer 1
execute if score 3081 timer matches 1..41 run execute as @e[type=minecraft:armor_stand,tag=br43] at @s run tp @s ~ ~ ~0.1
execute if score 3081 timer matches 1..41 run execute as @e[type=minecraft:armor_stand,tag=br42] at @s run tp @s ~ ~ ~-0.1
execute if score 3081 timer matches 41..81 run execute as @e[type=minecraft:armor_stand,tag=br43] at @s run tp @s ~ ~ ~-0.1
execute if score 3081 timer matches 41..81 run execute as @e[type=minecraft:armor_stand,tag=br42] at @s run tp @s ~ ~ ~0.1
execute if score 3081 timer matches 82.. run scoreboard players reset 3082 timer
execute if score 3081 timer matches 82.. run scoreboard players reset 3081 timer



execute as @a[scores={checkpoint=14}] at @s positioned -6 58 55 if entity @s[distance=..2] run schedule function koncept:teleport 5t append
execute as @a[scores={checkpoint=14}] at @s positioned -6 58 55 if entity @s[distance=..2] run tp @s -0.24 82.00 42.50 269.04 11.45

execute as @a[scores={checkpoint=14}] at @s if block ~ ~-0.3 ~ minecraft:magma_block run tp @s 4.56 45.00 55.40 -90.12 -0.30


### 84 20 85 21
execute positioned 12 47 55 if entity @a[distance=..8] run scoreboard players set 85 timer 1
execute if score 85 timer matches 1.. run scoreboard players add 84 timer 1
execute if score 84 timer matches 1..41 run execute as @e[type=minecraft:armor_stand,tag=90] at @s run tp @s ~ ~ ~0.1
execute if score 84 timer matches 41..81 run execute as @e[type=minecraft:armor_stand,tag=90] at @s run tp @s ~ ~ ~-0.1
execute if score 84 timer matches 1..41 run execute as @e[type=minecraft:armor_stand,tag=91] at @s run tp @s ~ ~ ~-0.1
execute if score 84 timer matches 41..81 run execute as @e[type=minecraft:armor_stand,tag=91] at @s run tp @s ~ ~ ~0.1
execute if score 84 timer matches 1..41 run execute as @e[type=minecraft:armor_stand,tag=92] at @s run tp @s ~ ~ ~0.1
execute if score 84 timer matches 41..81 run execute as @e[type=minecraft:armor_stand,tag=92] at @s run tp @s ~ ~ ~-0.1
execute if score 84 timer matches 81.. run scoreboard players reset 85 timer
execute if score 84 timer matches 81.. run scoreboard players reset 84 timer



## 21 78 20 79
execute positioned 3 45 56 if entity @a[distance=..10] run scoreboard players set 78 timer 1
execute if score 78 timer matches 1.. run scoreboard players add 79 timer 1
execute if score 79 timer matches 1 run summon armor_stand 19 43 55 {Tags:["22"],Invisible:1b,Invulnerable:1b,HandItems:[{},{}],Passengers:[{id:"falling_block",Time:-99999999,BlockState:{Properties:{axis:"z"},Name:"oxidized_cut_copper"}},{id:"minecraft:shulker",NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",ambient:0b,show_icon:0b,show_particles:0b,duration:9999999}]}]}
execute if score 79 timer matches 40 run summon armor_stand 19 43 56 {Tags:["22"],Invisible:1b,Invulnerable:1b,HandItems:[{},{}],Passengers:[{id:"falling_block",Time:-99999999,BlockState:{Properties:{axis:"z"},Name:"oxidized_cut_copper"}},{id:"minecraft:shulker",NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",ambient:0b,show_icon:0b,show_particles:0b,duration:9999999}]}]}
execute if score 79 timer matches 65 run summon armor_stand 19 43 54 {Tags:["22"],Invisible:1b,Invulnerable:1b,HandItems:[{},{}],Passengers:[{id:"falling_block",Time:-99999999,BlockState:{Properties:{axis:"z"},Name:"oxidized_cut_copper"}},{id:"minecraft:shulker",NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",ambient:0b,show_icon:0b,show_particles:0b,duration:9999999}]}]}
execute if score 79 timer matches 89 run summon armor_stand 19 43 54 {Tags:["22"],Invisible:1b,Invulnerable:1b,HandItems:[{},{}],Passengers:[{id:"falling_block",Time:-99999999,BlockState:{Properties:{axis:"z"},Name:"oxidized_cut_copper"}},{id:"minecraft:shulker",NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",ambient:0b,show_icon:0b,show_particles:0b,duration:9999999}]}]}
execute if score 79 timer matches 145 run summon armor_stand 19 43 56 {Tags:["22"],Invisible:1b,Invulnerable:1b,HandItems:[{},{}],Passengers:[{id:"falling_block",Time:-99999999,BlockState:{Properties:{axis:"z"},Name:"oxidized_cut_copper"}},{id:"minecraft:shulker",NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",ambient:0b,show_icon:0b,show_particles:0b,duration:9999999}]}]}
execute if score 79 timer matches 173 run summon armor_stand 19 43 54 {Tags:["22"],Invisible:1b,Invulnerable:1b,HandItems:[{},{}],Passengers:[{id:"falling_block",Time:-99999999,BlockState:{Properties:{axis:"z"},Name:"oxidized_cut_copper"}},{id:"minecraft:shulker",NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",ambient:0b,show_icon:0b,show_particles:0b,duration:9999999}]}]}

execute if score 79 timer matches 180.. run scoreboard players reset 78 timer
execute if score 79 timer matches 180.. run scoreboard players reset 79 timer

execute as @e[tag=22,type=minecraft:armor_stand] at @s if block ~0.5 ~ ~ minecraft:lime_terracotta run tp @s ~-0.1 ~ ~