Keep your gear on death and store dropped items in an Allay. Lose durability and XP instead.
Backport of Version 1.1 to 26.1.x