<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fenchant</id>
	<title>Minecraft:Commands/enchant - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fenchant"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/enchant&amp;action=history"/>
	<updated>2026-04-09T12:27:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/enchant&amp;diff=49625&amp;oldid=prev</id>
		<title>imported&gt;LauraFii at 05:25, 7 April 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/enchant&amp;diff=49625&amp;oldid=prev"/>
		<updated>2026-04-07T05:25:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox command&lt;br /&gt;
|name=enchant&lt;br /&gt;
|oplevel=&lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
|others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Adds an [[Minecraft:enchantment]] to a player&amp;#039;s selected [[Minecraft:item]], subject to the same restrictions as an [[Minecraft:anvil mechanics|anvil]].&amp;lt;ref&amp;gt;{{bug|MC-261942}}&amp;lt;/ref&amp;gt; Also works on any mob or entity holding a [[Minecraft:weapon]]/[[Minecraft:tool]]/[[Minecraft:armor]] in its main hand.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;enchant &amp;lt;targets&amp;gt; &amp;lt;enchantment&amp;gt; [&amp;lt;level&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;enchant &amp;lt;player: target&amp;gt; &amp;lt;enchantmentId: int&amp;gt; [level: int]&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;enchant &amp;lt;player: target&amp;gt; &amp;lt;enchantmentName: Enchant&amp;gt; [level: int]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
{{argument|targets|entity|player: target|CommandSelector&amp;lt;Actor&amp;gt;}}&lt;br /&gt;
: Specifies the target(s).&lt;br /&gt;
: {{arg desc|je=entity|amount=multiple|type=entities|be=actor}}&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|enchantment|resource}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|enchantmentId: int|int}} or {{argument|enchantmentName: Enchant|enum}}&lt;br /&gt;
: Specifies the [[Minecraft:enchantment]] to be added to the item held in main hand by the target.&lt;br /&gt;
: {{arg desc|je=resource|registry=minecraft:enchantment|be=enum}}&lt;br /&gt;
&lt;br /&gt;
{{argument|level|integer|level: int|int}}&lt;br /&gt;
: Specifies the enchantment level. Should be not greater than the maximum level for the specified enchantment&amp;lt;ref&amp;gt;Although &amp;lt;code&amp;gt;/enchant&amp;lt;/code&amp;gt; enforces maximum levels and compatibility, other commands (such as {{cmd|give}}, {{cmd|replaceitem}}, and {{cmd|data}}) can bypass these restrictions.&amp;lt;/ref&amp;gt;. If not specified, defaults to 1.&lt;br /&gt;
: {{arg desc|be=int|je=integer|min=0}} {{IN|bedrock}}, it should be between 1 and 2147483647 (inclusive).&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; fails to resolve to one or more entities (named player must be online).|fail|fail}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;level: int&amp;lt;/code&amp;gt; is lower than 1.|N/A}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;level&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;level: int&amp;lt;/code&amp;gt; is greater than the maximum level for the specified enchantment.|fail}}&lt;br /&gt;
{{Result table|All the selected entities meet one or more of the following conditions:&lt;br /&gt;
*There&amp;#039;s no item in its hand.&lt;br /&gt;
*The enchantment is not valid for items in its main hand.&lt;br /&gt;
*The enchantment conflicts with current enchantments (for example, &amp;quot;Piercing&amp;quot; cannot be given to a crossbow which already has &amp;quot;Multishot&amp;quot;, and &amp;quot;Sharpness III&amp;quot; cannot be given to a sword which already has &amp;quot;Sharpness I&amp;quot;).&lt;br /&gt;
*Items in its main hand already have this enchantment{{only|java}}.&lt;br /&gt;
*Items in its main hand already have this enchantment with its maximum level{{only|bedrock}}.&lt;br /&gt;
}}&lt;br /&gt;
{{Result table|succeed}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On fail|0|0|0}}&lt;br /&gt;
{{Output table|On success|1|1|the number of players whose items are successfully enchanted.}}&lt;br /&gt;
{{Output table|edition=be|On fail|0}}&lt;br /&gt;
{{Output table|On success|the number of players whose items are successfully enchanted.}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* To give the [[Minecraft:Infinity]] enchantment to all players holding a bow:&lt;br /&gt;
*: &amp;lt;code&amp;gt;/enchant @a infinity&amp;lt;/code&amp;gt;&lt;br /&gt;
* To enchant the nearest player&amp;#039;s held sword with [[Minecraft:Sharpness]] 5:&lt;br /&gt;
*: &amp;lt;code&amp;gt;/enchant @p sharpness 5&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{Expand section}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.4.4|dev=pre|Added {{cmd|/enchant|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.13|dev=17w45a|Removed {{cmd|enchant|link=none}}.}}&lt;br /&gt;
|{{HistoryLine|||dev=18w06a|Re-added {{cmd|enchant|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.19.3|dev=22w42a|{{cd|&amp;lt;enchantment&amp;gt;}} now accepts a [[Minecraft:argument types|&amp;lt;code&amp;gt;resource&amp;lt;/code&amp;gt; argument]], instead of &amp;lt;code&amp;gt;item_enchantment&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|pocket alpha}}&lt;br /&gt;
|{{HistoryLine||v0.16.0|dev=build 5|Added {{cmd|enchant|link=none}}.}}&lt;br /&gt;
|{{HistoryLine|bedrock}}&lt;br /&gt;
|{{HistoryLine||1.19.20|dev=Preview 1.19.20.22|{{cd|/enchant}} command now can be applied on mobs.&amp;lt;ref&amp;gt;{{bug|MCPE-113623||resolution=Fixed}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
|{{HistoryLine||1.19.50|dev=Preview 1.19.50.20|Using the {{cd|/enchant}} command to apply the same level of enchantment no longer results in a higher level being applied.&amp;lt;ref&amp;gt;{{bug|MCPE-153204||resolution=Fixed}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/enchant?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/enchant&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=October 11, 2023}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/enchant]]&lt;br /&gt;
[[Minecraft:es:Comandos/enchant]]&lt;br /&gt;
[[Minecraft:ja:コマンド/enchant]]&lt;br /&gt;
[[Minecraft:ko:명령어/enchant]]&lt;br /&gt;
[[Minecraft:lzh:令/enchant]]&lt;br /&gt;
[[Minecraft:pt:Comandos/enchant]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/enchant]]&lt;br /&gt;
[[Minecraft:th:คำสั่ง/enchant]]&lt;br /&gt;
[[Minecraft:uk:Команди консолі/enchant]]&lt;br /&gt;
[[Minecraft:zh:命令/enchant]]&lt;/div&gt;</summary>
		<author><name>imported&gt;LauraFii</name></author>
	</entry>
</feed>