execute store result entity @s Pos[0] double 1 run data get entity @a[tag=recall,limit=1] respawn.pos[0]
execute store result entity @s Pos[1] double 1 run data get entity @a[tag=recall,limit=1] respawn.pos[1]
execute store result entity @s Pos[2] double 1 run data get entity @a[tag=recall,limit=1] respawn.pos[2]
#execute at @s run forceload add ~ ~
execute at @a[tag=recall] run playsound minecraft:entity.enderman.teleport player @a
execute at @a[tag=recall] run particle glow_squid_ink ~ ~1 ~ .3 .5 .3 0 30
execute at @s align xyz positioned ~.5 ~.5 ~.5 run tp @a[tag=recall] ~ ~.1 ~
execute as @a[tag=recall] unless data entity @s respawn.dimension at @s in minecraft:overworld run tp @s ~ ~ ~
execute as @a[tag=recall,nbt={respawn:{dimension:"minecraft:the_nether"}}] at @s in minecraft:the_nether run tp @s ~ ~ ~
execute as @a[tag=recall,nbt={respawn:{dimension:"minecraft:the_end"}}] at @s in minecraft:the_nether run tp @s ~ ~ ~
execute as @a[tag=recall,nbt={respawn:{dimension:"survivalplus:backrooms"}}] at @s in survivalplus:backrooms run tp @s ~ ~ ~
#execute at @s align xyz positioned ~.5 ~.5 ~.5 if block ~ ~ ~ #beds run tp @a[tag=recall] ~ ~.1 ~
#execute at @s align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~ ~ #beds run tellraw @a[tag=recall] {"text":"Your bed is missing!","color":"red"}
execute at @a[tag=recall] run playsound minecraft:entity.enderman.teleport player @a
execute at @a[tag=recall] run particle glow_squid_ink ~ ~1 ~ .3 .5 .3 0 30
tag @a remove recall
#execute at @s run forceload remove ~ ~
kill @e[type=marker,tag=recallmarker]