execute store result score @s CasUndoX run data get entity @s SpawnX
execute store result score @s CasUndoY run data get entity @s SpawnY
execute store result score @s CasUndoZ run data get entity @s SpawnZ
execute at @s run spawnpoint @s ~ ~ ~ ~
tellraw @s {"text":"Respawn point set"}
particle flash ~ ~1 ~ 0 0 0 0 1 force
particle cloud ~ ~1 ~ 0 0 0 .5 50 force
particle firework ~ ~1 ~ 0 0 0 .5 50 force