
execute as @a[scores={checkpoint=16,checkpoint_between_16=0}] at @s positioned -17 71 36 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=16,checkpoint_between_16=0}] at @s positioned -17 71 36 if entity @s[distance=..2] run spawnpoint @s -17 70 37 -155.37 0
execute as @a[scores={checkpoint=16,checkpoint_between_16=0}] at @s positioned -17 71 36 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_16 1

execute as @a[scores={checkpoint=16,checkpoint_between_16=1}] at @s positioned -19 75 27 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=16,checkpoint_between_16=1}] at @s positioned -19 75 27 if entity @s[distance=..2] run spawnpoint @s -19 75 27 -132.33 0
execute as @a[scores={checkpoint=16,checkpoint_between_16=1}] at @s positioned -19 75 27 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_16 2





execute as @a[scores={checkpoint=16}] at @s positioned -11 64 43 if entity @s[distance=..1] unless entity @a[tag=woters] run tag @s add woters

scoreboard players add @a[tag=woters] timers 1

tag @a[tag=woters,scores={timers=1}] add woter
execute as @a[tag=woters,scores={timers=1}] at @s run summon armor_stand -11 64 43 {Marker:1b,Invisible:1b,Pose:{Head:[0f,88f,0f]},Tags:["123"],Rotation:[310f,0f]}
gamemode spectator @a[tag=woters,scores={timers=1..169}]
execute as @a[tag=woters,scores={timers=1..169}] at @s run execute at @e[tag=123,limit=1,sort=nearest] as @a[tag=woters,sort=nearest,limit=1] run spectate @e[sort=nearest,limit=1]


execute as @a[tag=woters,scores={timers=1}] at @s run scoreboard players set Rose1 Rose1 1000
execute as @e[tag=123] at @s store result entity @s Pose.Head[0] float -0.01 run scoreboard players get Rose1 Rose1
execute as @e[tag=123] at @s store result entity @s Rotation[1] float -0.01 run scoreboard players get Rose1 Rose1
execute as @a[tag=woters,scores={timers=1..}] at @s run execute if score Rose1 Rose1 matches -1.. run scoreboard players remove Rose1 Rose1 10
execute if score Rose1 Rose1 matches -1200 run scoreboard players reset Rose1 Rose1

scoreboard players add @e[tag=123] timers 1
execute as @e[tag=123,scores={timers=1..150}] at @s run tp @s ~ ~0.1 ~
execute as @e[tag=123,scores={timers=120..170}] at @s run tp @s ~-0.1 ~ ~-0.1

gamemode adventure @a[tag=woters,scores={timers=200}]

tag @a[tag=woters,scores={timers=200}] remove woters
kill @e[tag=123,scores={timers=199}]
scoreboard players reset @e[scores={timers=200}] timers