
execute as @a[scores={checkpoint=45}] at @s run execute as @s[y=39,dy=0] at @s run function koncept:return_stage with storage stage:checkpoint

execute as @a[scores={checkpoint=45,checkpoint_between_45=0}] at @s positioned 28 53 -43 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=45,checkpoint_between_45=0}] at @s positioned 28 53 -43 if entity @s[distance=..2] run spawnpoint @s 28 53 -43 449.02
execute as @a[scores={checkpoint=45,checkpoint_between_45=0}] at @s positioned 28 53 -43 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_45 1

execute as @a[scores={checkpoint=45,checkpoint_between_45=1}] at @s positioned 23 57 -43 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=45,checkpoint_between_45=1}] at @s positioned 23 57 -43 if entity @s[distance=..2] run spawnpoint @s 23 57 -43 449.02
execute as @a[scores={checkpoint=45,checkpoint_between_45=1}] at @s positioned 23 57 -43 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_45 2


execute as @e[type=minecraft:acacia_boat,tag=44boat] at @s run data merge entity @s {Motion:[-0.02,0.0,0.02]}

execute as @e[tag=mob_motion_recording_1] at @s run function koncept:level/43/10

tag @a[scores={checkpoint=45}] remove yellow
tag @a[scores={checkpoint=45}] remove green
tag @a[scores={checkpoint=45}] remove red
tag @a[scores={checkpoint=45}] remove blue
tag @a[scores={checkpoint=45}] remove white
tag @a[scores={checkpoint=45}] remove purple
tag @a[scores={checkpoint=45}] remove cyan
tag @a[scores={checkpoint=45}] remove brown
tag @a[scores={checkpoint=45}] remove planks
tag @a[scores={checkpoint=45}] remove gray
tag @a[scores={checkpoint=45}] remove orange
tag @a[scores={checkpoint=45}] remove magenta_terracotta
tag @a[scores={checkpoint=45}] remove lime_terracotta
tag @a[scores={checkpoint=45}] remove pink_terracotta
tag @a[scores={checkpoint=45}] remove light_blue
tag @a[scores={checkpoint=45}] remove yellow_terracotta
tag @a[scores={checkpoint=45}] remove light_blue_terracotta
tag @a[scores={checkpoint=45}] remove cyan_terracotta
tag @a[scores={checkpoint=45}] remove oxidized_copper
tag @a[scores={checkpoint=45}] remove crimson_fence
tag @a[scores={checkpoint=45}] remove magenta_stained_glass

execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:cut_copper run tag @s add yellow
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:yellow_concrete run tag @s add green
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:green_concrete run tag @s add crimson_fence
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:crimson_fence run tag @s add magenta_stained_glass
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:magenta_stained_glass run tag @s add red
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:red_concrete run tag @s add blue
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:blue_concrete run tag @s add white
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:white_concrete run tag @s add purple
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:purple_concrete run tag @s add cyan
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:cyan_concrete run tag @s add brown
execute as @a[scores={checkpoint=45}] at @s if block ~ ~-1 ~ minecraft:brown_concrete run tag @s add planks

execute as @a[scores={checkpoint=45}] at @s run execute positioned 24 45 -43 if entity @a[distance=..2] run tag @s add 40_r1

execute as @a[scores={checkpoint=45}] at @s run execute positioned 22 58 -50 if entity @a[distance=..2,tag=40_r1] run tag @s add 40_r2
execute as @a[scores={checkpoint=45}] at @s run execute positioned 22 58 -50 if entity @a[distance=..3,tag=40_r1] run fill 22 57 -47 20 57 -47 minecraft:air
execute as @a[scores={checkpoint=45}] at @s run execute positioned 22 58 -50 unless entity @a[distance=..3,tag=40_r1] run fill 22 57 -47 20 57 -47 minecraft:dark_oak_fence

execute as @a[scores={checkpoint=45}] at @s run execute positioned 21 58 -42 if entity @a[distance=..3,tag=40_r2] run fill 22 57 -39 20 57 -39 minecraft:air
execute as @a[scores={checkpoint=45}] at @s run execute positioned 21 58 -42 unless entity @a[distance=..3,tag=40_r2] run fill 22 57 -39 20 57 -39 minecraft:dark_oak_fence

execute as @a[scores={checkpoint=45}] at @s run execute positioned 21 58 -37 if entity @a[distance=..2,tag=!40_r2] run tp @s 21.52 57.00 -40.64 -1448.49 3.03


#206 207

execute positioned 25 58 -43 if entity @a[distance=..3] unless score 206 timer_an2 matches 2 run scoreboard players set 206 timer_an2 1
execute if score 206 timer_an2 matches 1 run scoreboard players add 207 timer_an2 1

execute if score 207 timer_an2 matches 5 run fill 28 57 -43 29 57 -44 minecraft:birch_planks
execute if score 207 timer_an2 matches 5 run execute positioned 28 58 -50 run playsound minecraft:entity.item.pickup block @a[distance=..12] 28 58 -50 1111 1

execute if score 207 timer_an2 matches 30 run fill 32 58 -47 33 58 -48 minecraft:birch_planks
execute if score 207 timer_an2 matches 30 run execute positioned 28 58 -50 run playsound minecraft:entity.item.pickup block @a[distance=..12] 28 58 -50 1111 1

execute if score 207 timer_an2 matches 60 run fill 33 58 -52 34 58 -53 minecraft:birch_planks
execute if score 207 timer_an2 matches 60 run execute positioned 28 58 -50 run playsound minecraft:entity.item.pickup block @a[distance=..12] 28 58 -50 1111 1

execute if score 207 timer_an2 matches 90 run fill 30 58 -56 29 58 -57 minecraft:birch_planks
execute if score 207 timer_an2 matches 90 run execute positioned 28 58 -50 run playsound minecraft:entity.item.pickup block @a[distance=..12] 28 58 -50 1111 1

execute if score 207 timer_an2 matches 120 run fill 25 57 -55 24 57 -54 minecraft:birch_planks
execute if score 207 timer_an2 matches 120 run execute positioned 28 58 -50 run playsound minecraft:entity.item.pickup block @a[distance=..12] 28 58 -50 1111 1

execute if score 207 timer_an2 matches 150 run fill 24 56 -51 23 56 -50 minecraft:birch_planks
execute if score 207 timer_an2 matches 150 run execute positioned 28 58 -50 run playsound minecraft:entity.item.pickup block @a[distance=..12] 28 58 -50 1111 1

execute if score 207 timer_an2 matches 160 run fill 28 57 -43 29 57 -44 minecraft:air

execute if score 207 timer_an2 matches 170 run fill 32 58 -47 33 58 -48 minecraft:air

execute if score 207 timer_an2 matches 180 run fill 33 58 -52 34 58 -53 minecraft:air

execute if score 207 timer_an2 matches 190 run fill 30 58 -56 29 58 -57 minecraft:air

execute if score 207 timer_an2 matches 200 run fill 25 57 -55 24 57 -54 minecraft:air

execute if score 207 timer_an2 matches 210 run fill 24 56 -51 23 56 -50 minecraft:air


execute if score 207 timer_an2 matches 210 run scoreboard players reset 206 timer_an2
execute if score 207 timer_an2 matches 210 run scoreboard players reset 207 timer_an2
