Execute a command at the last death location of a player

I tried using a macro, but since the last death location also includes the dimension it didn't work

Continue to help post