Wiki ArticleRemoved featuresBedrock EditionCommands

/enchantrandom

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.

Prints the following on failure (If the player does not hold an item):

This article is about the developer command. For the normal command in all editions, see Commands/enchant.
BlockSprite rose.png: Sprite image for rose in Minecraft
This page describes content that has been removed from Minecraft.
 
This feature was present in earlier versions of Minecraft, but has since been removed.
This feature is exclusive to Bedrock Edition.
 

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.13releaseAccidentally added developer commands to iOS, including /enchantrandom.
1.2.14Removed all developer commands.