
execute as @a[scores={checkpoint=52}] at @s run effect give @s[y=11,dy=0] minecraft:slow_falling 1 2 true
execute as @a[scores={checkpoint=52}] at @s run tp @s[y=11,dy=0] 26.82 19.00 -36.47 -125.98 3.55

execute as @a[scores={checkpoint=52}] at @s positioned 36 24 -31 if entity @s[distance=..2] run tag @s add 52_leaves_set

execute as @a[scores={checkpoint=52}] at @s positioned 50 29 -17 if entity @s[distance=..2] run tag @s remove 52_leaves_set

#52525201 52525202 52525203 52525204

execute positioned 36 24 -31 if entity @a[distance=..2,tag=52_leaves_set] unless score 52525201 timer_an matches 2 run scoreboard players set 52525201 timer_an 1
execute if score 52525201 timer_an matches 1 run scoreboard players add 52525202 timer_an 1

execute if score 52525202 timer_an matches 5 run function koncept:level/52/main_build

execute if score 52525202 timer_an matches 6 run scoreboard players set 52525201 timer_an 2

execute if score 52525201 timer_an matches 2 run execute unless entity @a[tag=52_leaves_set] run scoreboard players set 52525203 timer_an 1

execute if score 52525203 timer_an matches 1.. run scoreboard players add 52525204 timer_an 1

execute if score 52525204 timer_an matches 5 run function koncept:level/52/main_destroy

execute if score 52525204 timer_an matches 5 run scoreboard players reset 52525201 timer_an
execute if score 52525204 timer_an matches 5 run scoreboard players reset 52525202 timer_an
execute if score 52525204 timer_an matches 5 run scoreboard players reset 52525203 timer_an
execute if score 52525204 timer_an matches 5 run scoreboard players reset 52525204 timer_an


