Commands/enchantrandom
Minecraft Wiki article. Categories: Removed_features, Bedrock_Edition, Commands
This article is reproduced from Commands/enchantrandom on the Minecraft Wiki. Mirrored from revision 3571134. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
/enchantrandom{
"title": "<code>/enchantrandom</code>",
"rows": [
{
"field": "2",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Gives random enchantments to the item the player is holding. Only applies valid enchantments which do not conflict with one another. Only applies enchantments to items that can be enchanted. Additional enchantments can be added by repeating the command.
The command succeeds as long as the player holds an item. Whether the item is enchantable does not matter.
Syntax
/enchantrandom
Result
Prints the following on succeed:
Enchanting suceeded for %1$s
Prints the following on failure (If the player does not hold an item):
The target doesn't hold an item: %1$s
History
| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.2.13 | release | Accidentally added developer commands to iOS, including /enchantrandom. | |||||
| 1.2.14 | Removed all developer commands. | ||||||
Navigation
Sources
- Commands/enchantrandom — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3571134.