Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/enchantrandom: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
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}}
{{Outdated feature}}
{{Outdated feature}}
{{MC/Exclusive|bedrock}}
{{exclusive|bedrock}}
{{MC/Stub}}
{{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 ==


* '''Bedrock Edition'''
<code>/enchantrandom</code>


: <code>enchantrandom</code>
== Result ==
Prints the following on succeed:


== Result ==
<code>Enchanting suceeded for %1$s</code>
{{MC/Empty Section}}
 
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 ==
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.2.13|dev=release|Accidentally added developer commands to iOS, including {{MC/Cmd|link=none|enchantrandom}}.}}
|{{HistoryLine||1.2.13|dev=release|Accidentally added developer commands to iOS, including {{cmd|link=none|enchantrandom}}.}}
|{{MC/HistoryLine||1.2.14|Removed all developer commands.}}
|{{HistoryLine||1.2.14|Removed all developer commands.}}
}}
}}


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}

Latest revision as of 11:03, 12 May 2026

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

History

Template:HistoryTable

Navigation

Template:Navbox commands