This one-command creation adds waypoints and deathpoints to your vanilla
minecraft world. When players die, their items will be saved inside
graves.
I have made two different commands for the same creation: one that works in 1.8.X versions and one that works in 1.9.X versions.
Take a look https://www.youtube.com/watch?v=T0S7ri3zMR8