Curse of Vanishing

Curse of Vanishing is an enchantment that causes the item to disappear upon death.

Obtaining
Curse of Vanishing is a treasure enchantment; it can be obtained from jungle temple and stronghold chest loot, fishing, raid drops, or trading with a librarian of any level.

Usage
When the player dies while an item enchanted with Curse of Vanishing is in their inventory, it does not drop on the ground, but is removed from the world entirely. The item does not vanish if it is manually, or if it is placed in a chest before death.

The effect can be mitigated by storing affected items inside a shulker box, or by setting the  gamerule to.

Curse of Vanishing cannot be removed by a grindstone or a crafting table. However, if the cursed item is a pumpkin or mob head, placing and breaking the head removes the curse.

If an item dropped by a mob (such as a zombie or skeleton wearing armor) has Curse of Vanishing, the enchantment's effect works as normal.

Of all enchantments in the game, Curse of Vanishing is compatible with the greatest number of different item types. It can be added to any type of item which can be enchanted at all, including compass, carved pumpkin and jack o'lantern.

The effect is irrelevant in singleplayer Hardcore difficulty because death is permanent, so no items can be retrieved after dying.

ID