Drop specific items on death?

,

How do I set it so that players drop inventory on death, but not toolbar or equipped items, (i.m. head, torso, hands, legs, feet slots)

I believe there is an option to drop backpack. Select only that. It should be under survival.