Quite annoying not knowing where you died, relax, here this addon will tell you the coordinates where you died and in which dimension (although you will already know in which dimension you died, but it is useful for other people).
Select version for changelog:
Changelog
The code has been updated to function on version 1.20.62, and the message has been changed to be more structured.