Updated:
Density: enchantment ID and commands
The enchantment ID for Density is minecraft:density. Increases the extra damage a mace deals for each block fallen. It was added in Java 1.21.
Basic data
| Name | Density |
|---|---|
| ID (Java Edition) | minecraft:density |
| Java versions | Java 1.21 and later |
| Bedrock 26.52 | Same ID works (tested on a server) |
| Max level (normal) | 5 |
| Example item | Mace |
| Cannot be combined with | Bane of Arthropods / Breach / Impaling / Sharpness / Smite |
Commands you can copy
Java Edition
Enchant the held item
/enchant @p minecraft:density 5Give an item with it (Java 1.21+)
/give @p minecraft:mace[enchantments={"minecraft:density":5}] 1Give the enchanted book (Java 1.21+)
/give @p minecraft:enchanted_book[stored_enchantments={"minecraft:density":5}] 1Make it level 255, above the normal limit (Java 1.21+)
/give @p minecraft:mace[enchantments={"minecraft:density":255}] 1Bedrock Edition
Enchant the held item
/enchant @p density 5Version notes
It was added in Java 1.21. Older versions report that the ID is unknown.
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 Density?
It is minecraft:density. In commands you can also write density without minecraft:.
What is the max level of Density?
Normally 5. 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.