This mod adds gravestones which spawn after a players has died and adds a back command which teleports the player to their latest death.
You can download this mod on curseforge.
Spawn a grave after a player has died.
All items will be stored inside the grave.
If you don't want to walk back to your items, you can use the /back command. It'll teleport you to near the position you died in. If you don't want this command, you can disable it in the config.
This mod doesn't need to be installed on the client.