
execute as @a[scores={checkpoint=30,checkpoint_between_30=0}] at @s positioned 2 98 -27 if entity @s[distance=..3] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=30,checkpoint_between_30=0}] at @s positioned 2 98 -27 if entity @s[distance=..3] run spawnpoint @s 2 98 -26 89.39 
execute as @a[scores={checkpoint=30,checkpoint_between_30=0}] at @s positioned 2 98 -27 if entity @s[distance=..3] run scoreboard players set @s checkpoint_between_30 1


execute as @a[scores={checkpoint=30}] at @s run execute positioned -4 94 -26 if entity @s[distance=..3] run tag @s remove 30l_h1
execute as @a[scores={checkpoint=30}] at @s run execute as @s[tag=30l_h,tag=!30l_h1] run execute as @e[tag=30lgl,tag=tp] at @s run tp @s ~ ~10 ~
execute as @a[scores={checkpoint=30}] at @s run execute as @s[tag=30l_h,tag=!30l_h1] run execute as @e[tag=30lgl] at @s run tag @s remove tp
execute as @a[scores={checkpoint=30}] at @s run execute positioned -4 94 -26 if entity @s[distance=..3] run tag @s remove 30l_h
execute as @a[scores={checkpoint=30}] at @s run execute positioned -15 96 -33 if entity @s[distance=..1.5] run tag @s add 30l_h
execute as @a[scores={checkpoint=30}] at @s run execute as @s[tag=30l_h,tag=!30l_h1] run execute as @e[tag=30lgl,tag=!tp] at @s run tp @s ~ ~-10 ~
execute as @a[scores={checkpoint=30}] at @s run execute as @s[tag=30l_h,tag=!30l_h1] run execute as @e[tag=30lgl] at @s run tag @s add tp
execute as @a[scores={checkpoint=30}] at @s run execute positioned -15 96 -33 if entity @s[distance=..1.5] run tag @s add 30l_h1


#execute as @a[scores={checkpoint=30}] at @s run execute as @s[tag=30l_h] run data modify entity @e[type=minecraft:magma_cube,tag=30lgl,limit=1] Glowing set value 1
#execute as @a[scores={checkpoint=30}] at @s run execute unless entity @a[tag=30l_h] run data modify entity @e[type=minecraft:magma_cube,tag=30lgl,limit=1] Glowing set value 0

execute positioned -1 92 -24 unless entity @e[tag=30lgl,distance=..2] run data modify entity @e[type=minecraft:magma_cube,tag=30lgl,limit=1] Glowing set value 0
execute positioned -1 92 -24 if entity @e[tag=30lgl,distance=..2] run data modify entity @e[type=minecraft:magma_cube,tag=30lgl,limit=1] Glowing set value 1


#34 35 36 37
execute positioned 2 97 -28 if entity @a[distance=..4] unless score 34 timer_an matches 2 run scoreboard players set 34 timer_an 1
execute positioned -5 95 -22 if entity @a[distance=..2] unless score 34 timer_an matches 2 run scoreboard players set 34 timer_an 1
execute if score 34 timer_an matches 1 run scoreboard players add 35 timer_an 1

execute if score 35 timer_an matches 5 run fill -2 94 -19 -1 94 -18 minecraft:cherry_leaves
execute if score 35 timer_an matches 5 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 35 timer_an matches 25 run fill 2 92 -20 3 92 -19 minecraft:cherry_leaves
execute if score 35 timer_an matches 25 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 35 timer_an matches 35 run fill 4 93 -22 5 93 -23 minecraft:cherry_leaves
execute if score 35 timer_an matches 35 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 35 timer_an matches 85 run fill -4 96 -27 -5 96 -28 minecraft:cherry_leaves
execute if score 35 timer_an matches 85 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1



execute if score 35 timer_an matches 86 run scoreboard players set 34 timer_an 2

execute if score 34 timer_an matches 2 run execute positioned 1 98 -26 unless entity @a[distance=..10] run scoreboard players set 36 timer_an 1

execute if score 36 timer_an matches 1.. run scoreboard players add 37 timer_an 1

execute if score 37 timer_an matches 5 run fill -2 94 -19 -1 94 -18 minecraft:air
execute if score 37 timer_an matches 5 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 37 timer_an matches 25 run fill 2 92 -20 3 92 -19 minecraft:air
execute if score 37 timer_an matches 25 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 37 timer_an matches 35 run fill 4 93 -22 5 93 -23 minecraft:air
execute if score 37 timer_an matches 35 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 37 timer_an matches 40 run fill -4 96 -27 -5 96 -28 minecraft:air
execute if score 37 timer_an matches 40 run execute positioned 0 96 -23 run playsound minecraft:block.cherry_leaves.place block @a[distance=..6] 0 96 -23 1111 1

execute if score 37 timer_an matches 45 run scoreboard players reset 34 timer_an
execute if score 37 timer_an matches 45 run scoreboard players reset 35 timer_an
execute if score 37 timer_an matches 45 run scoreboard players reset 36 timer_an
execute if score 37 timer_an matches 45 run scoreboard players reset 37 timer_an



execute as @a at @s positioned -15 95 -33 if entity @s[distance=..2] at @s run give @s[tag=!levl_30_tri] trident[unbreakable={},enchantments={"minecraft:riptide":3},custom_data={NoPickup:1b}] 1
execute as @a at @s positioned -15 95 -33 if entity @s[distance=..2] at @s run tag @s add levl_30_tri

execute as @a[tag=levl_30_tri] at @s positioned -15 96 -32 unless entity @s[distance=..3] run scoreboard players add @s 30levl 1

tp @a[tag=levl_30_tri,scores={30levl=15..}] -13.99 95.50 -32.02 -1136.16 16.28
scoreboard players reset @a[tag=levl_30_tri,scores={30levl=15..}] 30levl

execute as @a[tag=levl_30_tri] at @s positioned 0 93 -24 if entity @s[distance=..2] at @s run clear @s minecraft:trident
execute as @a[tag=levl_30_tri] at @s positioned 0 93 -24 if entity @s[distance=..2] at @s run scoreboard players reset @s 30levl
execute as @a[tag=levl_30_tri] at @s positioned 0 93 -24 if entity @s[distance=..2] at @s run tag @s remove levl_30_tri

#30 31 32 33

execute positioned -17 93 -25 if entity @a[distance=..2] unless score 30 timer_an matches 2 run scoreboard players set 30 timer_an 1
execute if score 30 timer_an matches 1 run scoreboard players add 31 timer_an 1

execute if score 31 timer_an matches 5 run fill -20 93 -26 -19 93 -25 minecraft:cherry_leaves
execute if score 31 timer_an matches 5 run execute positioned -20 92 -30 run playsound minecraft:block.cherry_leaves.place block @a[distance=..10] -20 92 -30 1111 1

execute if score 31 timer_an matches 20 run fill -21 92 -30 -20 92 -29 minecraft:cherry_leaves
execute if score 31 timer_an matches 20 run execute positioned -20 92 -30 run playsound minecraft:block.cherry_leaves.place block @a[distance=..10] -20 92 -30 1111 1

execute if score 31 timer_an matches 30 run fill -18 91 -30 -17 91 -31 minecraft:cherry_leaves
execute if score 31 timer_an matches 30 run execute positioned -20 92 -30 run playsound minecraft:block.cherry_leaves.place block @a[distance=..10] -20 92 -30 1111 1



execute if score 31 timer_an matches 40 run scoreboard players set 30 timer_an 2

execute if score 30 timer_an matches 2 run execute positioned -18 92 -29 unless entity @a[distance=..5] run scoreboard players set 32 timer_an 1

execute if score 32 timer_an matches 1.. run scoreboard players add 33 timer_an 1

execute if score 33 timer_an matches 5 run fill -20 93 -26 -19 93 -25 minecraft:air
execute if score 33 timer_an matches 5 run execute positioned -20 92 -30 run playsound minecraft:block.cherry_leaves.place block @a[distance=..10] -20 92 -30 1111 1

execute if score 33 timer_an matches 10 run fill -21 92 -30 -20 92 -29 minecraft:air
execute if score 33 timer_an matches 10 run execute positioned -20 92 -30 run playsound minecraft:block.cherry_leaves.place block @a[distance=..10] -20 92 -30 1111 1

execute if score 33 timer_an matches 15 run fill -18 91 -30 -17 91 -31 minecraft:air
execute if score 33 timer_an matches 15 run execute positioned -20 92 -30 run playsound minecraft:block.cherry_leaves.place block @a[distance=..10] -20 92 -30 1111 1

execute if score 33 timer_an matches 40 run scoreboard players reset 30 timer_an
execute if score 33 timer_an matches 40 run scoreboard players reset 31 timer_an
execute if score 33 timer_an matches 40 run scoreboard players reset 32 timer_an
execute if score 33 timer_an matches 40 run scoreboard players reset 33 timer_an