execute as @a[distance=..4] rotated as @s run spawnpoint @s ~ ~2 ~1 ~
playsound entity.player.levelup master @a[distance=..4] ~ ~2 ~ 100 0.8 1
particle totem_of_undying ~ ~2.5 ~ 0.5 0.5 0.5 1 20 normal
title @a[distance=..4] actionbar {"text": "Checkpoint!", "color": "gold"}