Minecraft:Commands/enchantrandom: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{about|the developer command|the normal command in all editions|Commands/enchant}} | {{about|the developer command|the normal command in all editions|Commands/enchant}} | ||
{{ | {{Removed feature|edition=bedrock}} | ||
{{Infobox command | {{Infobox command | ||
| name = enchantrandom | | name = enchantrandom | ||
Latest revision as of 11:11, 18 September 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Template:Removed feature Template:Infobox command
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