execute as @a[scores={checkpoint=7,checkpoint_between_7=0}] at @s positioned 21 47 50 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message

execute as @a[scores={checkpoint=7}] at @s positioned 21 47 50 if entity @s[distance=..2] run spawnpoint @s 21 46 50 87.86
execute as @a[scores={checkpoint=7}] at @s positioned 21 47 50 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_7 1

execute as @a[scores={checkpoint=7,checkpoint_between_7=1}] at @s positioned 18 44 52 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message

execute as @a[scores={checkpoint=7}] at @s positioned 18 44 52 if entity @s[distance=..2] run spawnpoint @s 18 35 53 385.96
execute as @a[scores={checkpoint=7}] at @s positioned 18 44 52 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_7 2

execute positioned 16 44 47 if entity @a[distance=..5] unless score ray_tracing1 timer_an matches 2 run scoreboard players set ray_tracing1 timer_an 1
execute if score ray_tracing1 timer_an matches 1 run tellraw @a {"text":"Ray Tracing joined the game","color":"yellow"}
execute if score ray_tracing1 timer_an matches 1 run scoreboard players set ray_tracing1 timer_an 2

execute positioned 22 50 52 if entity @a[distance=..2] unless score ray_tracing2 timer_an matches 2 run scoreboard players set ray_tracing2 timer_an 1
execute if score ray_tracing2 timer_an matches 1 run tellraw @a {"text":"<Ray Tracing> I was trying to show off my parkour skills, but it didn't go as planned"}
execute if score ray_tracing2 timer_an matches 1 run scoreboard players set ray_tracing2 timer_an 2