Minecraft wiki entry for Curse_of_Vanishing, associated text: 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 dropped manually, or if it is placed in a chest before death.