Vanilla Death Chest Mod makes it easy to save your inventory after another death. A chest with your loot will automatically be created at the place of your death.
Vanilla Death Chest Mod for Minecraft 1.16.5/1.16.4/1.15.2
Sometimes it is extremely disappointing to lose the contents of your inventory because it may contain diamonds or enchanted items. In any case, in the later stages of the game, if you are far from home, it is unpleasant to lose your items. Now, at the place of your death, a chest with your things will spawn, which will be saved to the last.
This way you can keep your honestly earned items and things. Agree that this is fair and honest in relation to the player who spent a lot of time mining resources and then lost them at one point.