execute as @a at @s positioned -7 95 8 if entity @s[distance=..1] run function koncept:teleport3

execute as @a[scores={checkpoint=24,checkpoint_between_24=0}] at @s positioned -6 82 18 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=24,checkpoint_between_24=0}] at @s positioned -6 82 18 if entity @s[distance=..2] run spawnpoint @s -6 82 18 -406.09 0
execute as @a[scores={checkpoint=24,checkpoint_between_24=0}] at @s positioned -6 82 18 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_24 1