execute store result entity @s Pos[0] double 1 run data get entity @a[tag=tpdead,limit=1] LastDeathLocation.pos[0]
execute store result entity @s Pos[1] double 1 run data get entity @a[tag=tpdead,limit=1] LastDeathLocation.pos[1]
execute store result entity @s Pos[2] double 1 run data get entity @a[tag=tpdead,limit=1] LastDeathLocation.pos[2]
#THIS IS NOT WORKING!!!! VVV LEARN HOW TO TP MARKER TO PLAYERS LAST DEATH DIMENSION
execute store result entity @s Dimension double 1 run data get entity @a[tag=tpdead,limit=1] LastDeathLocation.dimension
execute at @a[tag=tpdead] run playsound minecraft:entity.enderman.teleport player @a
execute at @a[tag=tpdead] run particle squid_ink ~ ~1 ~ .3 .5 .3 0 30
execute at @s align xyz positioned ~.5 ~.5 ~.5 run tp @a[tag=tpdead] ~ ~.1 ~
execute at @a[tag=tpdead] run playsound minecraft:entity.enderman.teleport player @a
execute at @a[tag=tpdead] run particle squid_ink ~ ~1 ~ .3 .5 .3 0 30
tag @a remove tpdead
kill @e[type=marker,tag=tpdeadmarker]