
scoreboard players set @s siscu.dimension 3
execute if data entity @s {LastDeathLocation:{dimension:"minecraft:overworld"}} run scoreboard players set @s siscu.dimension 0
execute if data entity @s {LastDeathLocation:{dimension:"minecraft:the_nether"}} run scoreboard players set @s siscu.dimension 1
execute if data entity @s {LastDeathLocation:{dimension:"minecraft:the_end"}} run scoreboard players set @s siscu.dimension 2

execute if score @s siscu.dimension matches 0 run return run tellraw @s [{text:"Last Death: ",color:"red",bold:true},{"entity":"@s","nbt":"LastDeathLocation.pos[0]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[1]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[2]",color:"white"},{text:" [Overworld]",color:"green"}]
execute if score @s siscu.dimension matches 1 run return run tellraw @s [{text:"Last Death: ",color:"red",bold:true},{"entity":"@s","nbt":"LastDeathLocation.pos[0]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[1]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[2]",color:"white"},{text:" [The Nether]",color:"red"}]
execute if score @s siscu.dimension matches 2 run return run tellraw @s [{text:"Last Death: ",color:"red",bold:true},{"entity":"@s","nbt":"LastDeathLocation.pos[0]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[1]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[2]",color:"white"},{text:" [The End]",color:"light_purple"}]
execute if score @s siscu.dimension matches 3 run return run tellraw @s [{text:"Last Death: ",color:"red",bold:true},{"entity":"@s","nbt":"LastDeathLocation.pos[0]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[1]",color:"white"},{text:" "},{"entity":"@s","nbt":"LastDeathLocation.pos[2]",color:"white"},{text:"[",color:"gray"},{"entity":"@s","nbt":"LastDeathLocation.dimension",color:"gray"},{text:"]",color:"gray"}]
