Minecraft:Commands/enchantrandom: Difference between revisions
From SAS Gaming Wiki
More actions
imported>Madisongs m Very minor description update. I could have added more on syntax but I don’t know enough about wiki rules on that. Please refer to talk page for more insight on command output. If a source is needed, I can provide. |
Sync: updated from Minecraft |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Outdated feature}} | {{Outdated feature}} | ||
{{exclusive|bedrock}} | {{exclusive|bedrock}} | ||
{{Infobox command | {{Infobox command | ||
| name = enchantrandom | | name = enchantrandom | ||
| oplevel = 2 | | oplevel = 2 | ||
| others = [[Minecraft:Cheat]] only | |||
}} | }} | ||
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. | 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 == | == Syntax == | ||
<code>/enchantrandom</code> | |||
: | == Result == | ||
Prints the following on succeed: | |||
<code>Enchanting suceeded for %1$s</code> | |||
Prints the following on failure (If the player does not hold an item): | |||
<code>The target doesn't hold an item: %1$s</code> | |||
== History == | == History == | ||
Latest revision as of 11:03, 12 May 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Template:Outdated feature Template:Exclusive 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