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

execute as @a[scores={checkpoint=44,checkpoint_between_44=0}] at @s positioned 32 41 -17 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=44,checkpoint_between_44=0}] at @s positioned 32 41 -17 if entity @s[distance=..2] run spawnpoint @s 32 42 -17 -180
execute as @a[scores={checkpoint=44,checkpoint_between_44=0}] at @s positioned 32 41 -17 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_44 1

execute as @e[type=minecraft:acacia_boat,tag=44acacia_boat] at @s run data merge entity @s {Motion:[-0.02,0.0,0.02]}
execute as @e[tag=mob_motion_recording_2] at @s run function koncept:level/43/10

execute as @a[scores={checkpoint=44},tag=!44lavaseve] at @s if block ~ ~-0.5 ~ minecraft:smooth_red_sandstone_slab[type=double,waterlogged=false] run tp @s 19.85 35.00 -20.24 326.43 21.36

execute as @a[scores={checkpoint=44},tag=44lavaseve] at @s if block ~ ~-0.5 ~ minecraft:smooth_red_sandstone_slab[type=double,waterlogged=false] run tp @s 33.25 22.00 -1.77 143.52 15.51

#10 11

execute as @a[scores={checkpoint=44}] at @s run execute positioned 32 22 -4 if entity @s[distance=..3,tag=!44lavaseve] run tag @s add 44lavaseve
execute positioned 32 22 -4 if entity @a[distance=..3] unless score 10 timer_an5 matches 2 run scoreboard players set 10 timer_an5 1
execute if score 10 timer_an5 matches 1 run scoreboard players add 11 timer_an5 1

execute if score 11 timer_an5 matches 5.. run function koncept:level/44.3


scoreboard players add @e[tag=44acacia_boat_1] timer_an6 1
execute as @e[tag=44acacia_boat_1,scores={timer_an6=600}] at @s positioned ~ ~ ~ run kill @e[type=minecraft:interaction,tag=44intpas,distance=..2]
kill @e[tag=44acacia_boat_1,scores={timer_an6=600}]

kill @e[tag=44acacia_boat_1,scores={timer_an6=600}]
#5 6 7 8

execute positioned 19 35 -21 if entity @a[distance=..3] unless score 5 timer_an5 matches 2 run scoreboard players set 5 timer_an5 1
execute if score 5 timer_an5 matches 1 run scoreboard players add 6 timer_an5 1
scoreboard players add @e[type=minecraft:acacia_boat,tag=44acacia_boat] timer_an5 1
tp @e[type=minecraft:acacia_boat,tag=44acacia_boat,scores={timer_an5=700..}] 1 -10 18

execute if score 6 timer_an5 matches 1.. run function koncept:level/44.1
execute unless entity @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=1..}] run execute as @a[tag=!43_vilit] at @s positioned 27 25 -9 if entity @s[distance=..1.5] run function koncept:level/43/2
execute unless entity @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=1..}] run execute as @a[tag=!43_vilit] at @s positioned 27 25 -9 if entity @s[distance=..1.5] run tag @s add 43_vilit

gamemode spectator @a[tag=43_vilit]
execute as @a[tag=43_vilit] at @s run spectate @e[type=minecraft:armor_stand,tag=44lava_arst,limit=1,sort=nearest] @s

scoreboard players add @e[tag=!44lava_arst1,tag=44lava_arst,type=minecraft:armor_stand] timer_an 1
execute at @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=15}] run playsound minecraft:custom.sprout_respawn block @s 27 32 -9 1111 1
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=10}] at @s run data merge entity @s {Motion:[0.0,2.0,0.0]}
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=30}] at @s run data merge entity @s {Motion:[0.4,1.3,-0.4]}
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=48}] at @s run data merge entity @s {Motion:[0.3,0.1,0.1]}

execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=30..75}] at @s run function koncept:level/43/3

execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=75}] at @s run gamemode adventure @p[tag=43_vilit]
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=75}] at @s run tag @p[tag=43_vilit] remove 43_vilit

execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=15}] at @s run particle minecraft:lava 27 32 -9 0.1 0.5 0.1 0.1 20
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=5}] at @s run summon firework_rocket 27 30 -9 {LifeTime:10,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;11743532,3887386,2437522,2651799,15435844],FadeColors:[I;4312372,14602026,6719955,12801229]}],Flight:-1}}}}
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=5}] at @s run playsound minecraft:custom.sprout_respawn block @a[distance=..5] 27 32 -9 1111 1
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=15}] at @s run playsound minecraft:block.lava.pop master @a 27 32 -9 111
execute as @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=22}] at @s run particle minecraft:large_smoke 27 32 -9 0.1 0.5 0.1 0.1 20

kill @e[tag=44lava_arst,type=minecraft:armor_stand,scores={timer_an=75..}]

#1 2 3 4

execute positioned 32 41 -19 if entity @a[distance=..3] unless score 1 timer_an5 matches 2 run scoreboard players set 1 timer_an5 1
execute positioned 33 41 -14 if entity @a[distance=..3] unless score 1 timer_an5 matches 2 run scoreboard players set 1 timer_an5 1
execute if score 1 timer_an5 matches 1 run scoreboard players add 2 timer_an5 1

execute if score 2 timer_an5 matches 5.. run execute as @e[tag=mob_motion_recording_1] at @s run function koncept:level/43/10
execute if score 2 timer_an5 matches 5 run playsound minecraft:entity.villager.ambient master @a 32.78 42.00 -17.54
execute if score 2 timer_an5 matches 5 run data modify entity @e[tag=mob_motion_recording_1,limit=1,sort=nearest] equipment.legs.components.minecraft:custom_data.Position set from storage kp:motion Position
execute if score 2 timer_an5 matches 5 run data modify entity @e[tag=mob_motion_recording_1,limit=1,sort=nearest] equipment.legs.components.minecraft:custom_data.Rotation set from storage kp:motion Rotation

execute if score 2 timer_an5 matches 33.. run function koncept:level/44.2

execute if score 2 timer_an5 matches 200.. run scoreboard players reset 1 timer_an5
execute if score 2 timer_an5 matches 200.. run scoreboard players reset 2 timer_an5
execute if score 2 timer_an5 matches 200.. run scoreboard players reset 3 timer_an5
execute if score 2 timer_an5 matches 200.. run scoreboard players reset 4 timer_an5