Updated:
Curse of Vanishing: enchantment ID and commands
The enchantment ID for Curse of Vanishing is minecraft:vanishing_curse. A curse: the item disappears when the player dies. The ID has been the same since Java 1.13.
Basic data
| Name | Curse of Vanishing |
|---|---|
| ID (Java Edition) | minecraft:vanishing_curse |
| Java versions | Java 1.13 to 26.3 |
| Bedrock 26.52 | This ID is not accepted as is |
| Max level (normal) | 1 |
| Example item | Diamond Sword |
| Note | A curse. It does not appear in the enchanting table. |
Commands you can copy
Java Edition
Enchant the held item
/enchant @p minecraft:vanishing_curse 1Give an item with it (Java 1.21+)
/give @p minecraft:diamond_sword[enchantments={"minecraft:vanishing_curse":1}] 1Give the enchanted book (Java 1.21+)
/give @p minecraft:enchanted_book[stored_enchantments={"minecraft:vanishing_curse":1}] 1Java 1.20.5 to 1.20.6 form
/give @p minecraft:diamond_sword[enchantments={levels:{"minecraft:vanishing_curse":1}}] 1Java 1.20.4 and earlier form
/give @p minecraft:diamond_sword{Enchantments:[{id:"minecraft:vanishing_curse",lvl:1}]} 1Bedrock Edition
Bedrock does not accept this ID. Check the Bedrock form with the Java / Bedrock converter.
Version notes
This ID has not changed from Java 1.13 to the latest 26.3.
The /give form for enchantments depends on the version. Java 1.20.5 and later use [enchantments={…}]; 1.20.4 and earlier use {Enchantments:[…]}.
Questions
What is the ID for Curse of Vanishing?
It is minecraft:vanishing_curse. In commands you can also write vanishing_curse without minecraft:.
What is the max level of Curse of Vanishing?
Normally 1. With /give you can set up to 255.
Why does /enchant fail?
/enchant only works when the held item supports the enchantment and the level is within the normal limit. Use /give for higher levels or for items that cannot normally take it.