So I do not like either option for death in Minecraft.
Loosing all stuff has you often grind for gear. Keeping all feels kind of cheaty.
This is why I created KeepMostInventory.
This lets you keep all tools, Armor and Shulker boxes when dying, but everything else will be dropped. Even tells you what you lost. I am planning to make a better version in the future with a config to toggle exactly what you want to keep and or loose and deals with Curses.
Hope you enjoy, please tell me about bugs if you find one or make feature requests.
gamerule keepinventory has to be true for the plugin to work.