When you die, NBT data on items from your inventory gets cleared. Highly configurable!
Output of command "/die_nbt everything", while holding item in hand
Check the comments to start understand what this mod is capable of