====== .enchant ======
^ .enchant ^^
|{{ enchant.webp?500x356 |Screenshot of a diamond pickaxe that has been enchanted with .enchant.}}||
^Type|[[:Command]]|
^Category|[[:No Category|none]]|
^In-game description|"Enchants an item with everything,\\ except for silk touch and curses."|
^[[:keybinds#default_keybinds|Default keybind]]|none|
^Source code|[[w7src>net/wurstclient/commands/EnchantCmd.java]]|
.enchant is a [[:command|chat command]] that enchants the item in the player's hand with every enchantment except for [[mc>Silk Touch]] and cursed enchantments. Most enchantments are applied at level 127, but [[mc>Quick Charge]] is applied at level 5 to prevent it from breaking [[mc>crossbow|crossbows]].
.enchant can only be used in [[mc>Creative Mode]], since it is not possible to modify NBT data in [[mc>Survival Mode]].
===== Usage =====
To enchant an item, simply type ''.enchant'' into the chat box while holding the item.
If the item has been enchanted successfully, there will be a chat message saying:
''**[Wurst]** Item enchanted.'' ((Only you can see this message.))
If the item could not be enchanted, the chat will display either:
''**[Wurst] [ERROR]** There is no item in your hand.'' ((Only you can see this message.))
if the main hand slot is empty, or:
''**[Wurst] [ERROR]** Creative mode only.'' ((Only you can see this message.))
if you are not in [[mc>Creative Mode]].
===== Syntax =====
Main article: [[Command Syntax]]
* ''.enchant'' Enchants the item in the player's main hand.\\ \\
* ''.enchant all'' [//[[:Wurst 6]] only//] Enchants all items in the player's inventory. ((This option has been removed in [[:Wurst 7]] because it was not very useful. "all" really did mean **all items** in the inventory, including food, building blocks, etc.))\\ \\
===== Changes =====
^Version^Changes^
|[[update:Wurst 1.1]]|Added ''.enchant''.|
|[[update:Wurst 2.15]]|Added a primary action "Enchant Held Item" to the .enchant page in [[:Navigator]].|
|[[update:Wurst 7.0pre1]]|Temporarily removed ''.enchant''.|
|[[update:Wurst 7.0pre13]]|Re-added ''.enchant'' (without the ''all'' option). (Thanks to [[gh>MaxCoding3]]!)|
{{tag>creative_mode_only NBT_data}}