With the use of the chest you see in the picture, you don’t have to worry about losing your stuff when you die.
It automatically puts all your stuff from your inventory right into a chest. Even if your inventory is full – a double chest will appear.
Just so you know, that chest will stay there for about an hour.
As usual, just use the /back command to return to your death point.