Curse of Vanishing

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

Obtaining
Curse of Vanishing counts as 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 single-player hardcore difficulty because death is permanent, so no items can be retrieved after dying.

If the  gamerule is set to true, the item does not get removed from inventory.

ID