
execute as @a[scores={checkpoint=10,checkpoint_between_10=0}] at @s positioned 29 50 56 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=10,checkpoint_between_10=0}] at @s positioned 29 50 56 if entity @s[distance=..2] run spawnpoint @s 29 50 56 337.73
execute as @a[scores={checkpoint=10,checkpoint_between_10=0}] at @s positioned 29 50 56 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_10 1


execute as @a at @s positioned 28 50 57 if entity @s[distance=..2] run tag @s add build_level_10

execute as @a at @s positioned 16 49 75 if entity @s[distance=..2] run tag @s remove build_level_10



#101001 101002 101003 101004

execute positioned 28 50 57 if entity @a[distance=..2] unless score 101001 timer_an matches 2 run scoreboard players set 101001 timer_an 1
execute if score 101001 timer_an matches 1 run scoreboard players add 101002 timer_an 1

execute if score 101002 timer_an matches 5 run function koncept:level/10/build

execute if score 101002 timer_an matches 6 run scoreboard players set 101001 timer_an 2

execute if score 101001 timer_an matches 2 run execute unless entity @a[tag=build_level_10] run scoreboard players set 101003 timer_an 1

execute if score 101003 timer_an matches 1.. run scoreboard players add 101004 timer_an 1

execute if score 101004 timer_an matches 5 run function koncept:level/10/build_destroy

execute if score 101004 timer_an matches 6 run scoreboard players reset 101001 timer_an
execute if score 101004 timer_an matches 6 run scoreboard players reset 101002 timer_an
execute if score 101004 timer_an matches 6 run scoreboard players reset 101003 timer_an
execute if score 101004 timer_an matches 6 run scoreboard players reset 101004 timer_an


























tag @a[scores={checkpoint=10}] remove levitno
tag @a[scores={checkpoint=10}] remove levit


#
execute positioned 22 42 65 if entity @a[distance=..2] unless score 45 timer matches 2 run scoreboard players set 45 timer 1
execute if score 45 timer matches 1 run scoreboard players add 44 timer 1
execute if score 44 timer matches 10 run fill 26 42 64 27 42 63 minecraft:pearlescent_froglight
execute if score 44 timer matches 10 run execute positioned 26 42 64 run playsound minecraft:entity.item.pickup block @a[distance=..6] 26 42 64 1111 1
execute if score 44 timer matches 30 run fill 27 43 60 28 43 59 minecraft:verdant_froglight
execute if score 44 timer matches 30 run execute positioned 26 42 64 run playsound minecraft:entity.item.pickup block @a[distance=..6] 26 42 64 1111 1
execute if score 44 timer matches 50 run fill 24 44 61 23 44 60 minecraft:ochre_froglight
execute if score 44 timer matches 49 run execute positioned 26 42 64 run playsound minecraft:entity.item.pickup block @a[distance=..6] 26 42 64 1111 1



execute if score 44 timer matches 50 run scoreboard players set 45 timer 2

execute if score 45 timer matches 2 run execute positioned 22 42 65 unless entity @a[distance=..8] run scoreboard players set 46 timer 1
execute if score 46 timer matches 1 run scoreboard players add 44 timer 1
execute if score 44 timer matches 60 run fill 26 42 64 27 42 63 minecraft:air
execute if score 44 timer matches 70 run fill 27 43 60 28 43 59 minecraft:air
execute if score 44 timer matches 80 run fill 24 44 61 23 44 60 minecraft:air
execute if score 44 timer matches 80.. run scoreboard players reset 46 timer
execute if score 44 timer matches 80.. run scoreboard players reset 45 timer
execute if score 44 timer matches 80.. run scoreboard players reset 44 timer














###
execute positioned 18 49 62 if entity @a[distance=..1] unless score 54 timer matches 2 run scoreboard players set 54 timer 1
execute if score 54 timer matches 1 run scoreboard players add 53 timer 1
execute if score 53 timer matches 10 run fill 21 49 62 22 49 63 minecraft:mangrove_planks
execute if score 53 timer matches 10 run execute positioned 18 49 62 run playsound minecraft:entity.item.pickup block @a[distance=..15] 18 49 62 1111 1
execute if score 53 timer matches 30 run fill 24 50 64 25 50 65 minecraft:mangrove_planks
execute if score 53 timer matches 30 run execute positioned 18 49 62 run playsound minecraft:entity.item.pickup block @a[distance=..15] 18 49 62 1111 1
execute if score 53 timer matches 50 run fill 28 51 62 29 51 63 minecraft:mangrove_planks
execute if score 53 timer matches 50 run execute positioned 18 49 62 run playsound minecraft:entity.item.pickup block @a[distance=..15] 18 49 62 1111 1
execute if score 53 timer matches 70 run fill 27 52 60 28 52 59 minecraft:mangrove_planks
execute if score 53 timer matches 70 run execute positioned 18 49 62 run playsound minecraft:entity.item.pickup block @a[distance=..15] 18 49 62 1111 1
execute if score 53 timer matches 90 run fill 20 53 65 19 53 64 minecraft:mangrove_planks
execute if score 53 timer matches 85 run execute positioned 18 49 62 run playsound minecraft:entity.item.pickup block @a[distance=..15] 18 49 62 1111 1


execute if score 53 timer matches 90 run scoreboard players set 54 timer 2

execute if score 54 timer matches 2.. run execute positioned 24 53 62 unless entity @a[distance=..9] run scoreboard players set 55 timer 1
execute if score 55 timer matches 1 run scoreboard players add 53 timer 1
execute if score 53 timer matches 92 run fill 21 49 62 22 49 63 minecraft:air
execute if score 53 timer matches 100 run fill 24 50 64 25 50 65 minecraft:air
execute if score 53 timer matches 120 run fill 28 51 62 29 51 63 minecraft:air
execute if score 53 timer matches 130 run fill 27 52 60 28 52 59 minecraft:air
execute if score 53 timer matches 140 run fill 20 53 65 19 53 64 minecraft:air
execute if score 53 timer matches 150.. run scoreboard players reset 55 timer
execute if score 53 timer matches 150.. run scoreboard players reset 54 timer
execute if score 53 timer matches 150.. run scoreboard players reset 53 timer