Enchanting



Enchanting is a mechanic that augments armor, tools, weapons, and books with one or more of a variety of "enchantments" that improve an item's existing abilities or imbue them with additional abilities and uses.

Enchanting methods
There are three ways to enchant an item in Survival mode:


 * Through an enchanting table in exchange for experience points and lapis lazuli. Only unenchanted items may be enchanted this way.
 * Through an anvil, combining an enchanted book with an item.
 * Through an anvil, combining two of the same item with different existing enchantments into a single item that has the enchantments of both.

A player may also obtain items already enchanted:


 * Through a villager, who may trade some enchanted items for emeralds.
 * Through fishing, which gives a chance of obtaining enchanted items.
 * Through a zombie, drowned, husk, piglin, skeleton, stray, wither skeleton, and zombified piglin – if they have enchanted items and the player kills them, it has an 8.5% chance of them dropping each said item.
 * Through finding them in end cities and other assorted treasure chests, such as shipwrecks, mineshafts, dungeons, desert temples, jungle temples, woodland mansions, ocean ruins, strongholds, ruined portals, and bastion remnants.
 * Bartering offers an enchanted book or iron boots.
 * Through killing pillagers and vindicators in raids.

Server operators and players in singleplayer worlds with cheats enabled can also enchant items using commands such as. When enchanted with the command, the maximum enchantment level is 2,147,483,647. In Creative mode, items can be enchanted via an anvil and enchanted books, with no experience points required. Enchanted books are available in the Creative mode inventory, with individual book displays for the highest level of each enchantment and other levels available via the "Search" tab.

Enchanting table
An item can be enchanted by an enchanting table and placing the item in the input slots and 1–3  in its dedicated slot. Upon placing the item, three (pseudo)randomized options appear on the right of the GUI. The glyphs here do not affect the enchantment, but hovering over a presented enchantment shows one enchantment to be applied (on mobile devices, the player can tap an enchantment before putting in the lapis lazuli or hold the enchantment before release). The only choices available have a level requirement equal to or below the player's current level and a lapis lazuli requirement equal to or below the number of lapis lazuli placed in the table. Each option imbues the item with a randomized set of enchantments that are dependent on the number of experience levels required (e.g. a level 10 enchantment can give a pickaxe the "Efficiency II" enchantment); the actual level cost and the number of lapis lazuli required have no effect.

Although the player must have at least the level requirement to get an enchantment, the number of levels that the player is charged is the same as the lapis lazuli requirement. For example, if the third enchantment listed is a level 30-50 enchantment, the player must have at least 30 levels, pays only 3 levels and 3 lapis lazuli.

The level requirement influences the quantity, type, and level of enchantments instilled in the item, with a higher experience level generally resulting in more and/or higher-level enchantments. Nevertheless, there is a significant random factor, and even a level 30 enchantment (the maximum) doesn't guarantee more than one enchantment, or even that enchantments are "maximum strength" — a level 30 enchantment can still yield Fortune II or Efficiency III alone, for example.

To increase the enchantment level, bookshelves should be placed next to the enchanting table while keeping one block of air between them. To gain access to the previously mentioned level 30 enchantments, a total of 15 bookshelves need to be placed around the enchanting table. See the enchantment mechanics page for more detailed information on this.

Enchanting a book produces an enchanted book, which does nothing on its own, but effectively "saves" the enchantment for later application to another item with an anvil.

Unlike with an anvil, using the enchanting table while on Creative still costs experience. However, if the player doesn't have enough experience, then experience reduces to zero and the enchantment still works, even when using the enchanting table while already at level zero.

Affecting offered enchantments
Enchanting any item at any enchantment level changes the player's enchantment seed, which changes the possible enchantments for every item at every enchantment level. Thus, if none of the available enchantments for a tool are desired, 1 lapis lazuli and 1 level could be spent to enchant a book or a different tool to refresh the list.

The possible enchantments depend on the player's enchantment seed, the item type, and material, and the enchantment level (1–30). Removing the item and putting it back in, clicking on the item slot with a different item, using a different item of the same type and material, replacing or moving the table (but keeping the same number of bookshelves), using a different table with the same number of bookshelves, or replacing or rearranging the bookshelves without changing their total number does not affect the possible enchantments.

Changing the enchantment levels offered by adding, removing, or blocking bookshelves alters the enchantments shown, but does not change possible enchantments; using another enchanting table with the previous bookshelf number still shows the previous enchantments. The enchantments for a particular enchantment level (with the same seed and item) do also differ depending on which row they appear in, but they are not "better" or "worse" based on the row despite the different resource costs.

Anvil combinations
An anvil can be used to combine the enchantments of two items, sacrificing one of them and repairing the other. The items must be compatible; they must either be the same type and material (such as two iron swords) or an item and an enchanted book with an applicable enchantment (such as a bow and an Infinity enchanted book).

Combining two enchanted items, books or one of each with the same enchantment at the same level produces an item or book with the next higher level of that enchantment up to the maximum allowed in survival mode; for example, a book with Thorns I and Unbreaking II combined with a book with Unbreaking II produces a book with Thorns I and Unbreaking III.

To combine items, the player places the target item in the anvil's first slot and the sacrifice item in the second slot. If the combination is allowed, the resulting enchanted item appears in the anvil's output slot and an experience level cost, labeled "Enchantment Cost", appears below (green if the player has enough experience levels, red if they don't). To complete the enchanting, the player removes the enchanted item from the anvil's output slot, and their experience level is reduced accordingly.

The experience cost depends on the enchantments, with highly enchanted items costing more. If the target item is also being repaired, that costs more as well. The target item can also be renamed, at additional cost. There is also an accumulating surcharge for prior work done on anvils. In Survival mode, work that costs more than 39 levels of experience is refused although it may still be possible to perform the same work in steps. For example, a damaged enchanted bow may be repaired on an anvil with an ordinary bow, and then another enchanted bow may be used to combine enchantments with the repaired bow.

Enchanted books
Enchanted books can be made by using an enchanting table to enchant a book. (They can also be found in generated chests, purchased with emeralds from a villager librarian, or looted by fishing rod.) The book can receive multiple enchantments of any type, but only enchantments appropriate to a given item type may be applied to that item. For example, the same book may receive Respiration and Power enchantments, but the Respiration enchantment is lost if the book is applied to anything but a helmet, and the Power enchantment is lost if the book is applied to anything but a bow.

Enchanted books are used on an anvil to add enchantments to items, including other books. They can apply some enchantments to items that cannot be enchanted from an enchanting table, such as applying Thorns to boots.

In Creative mode, books can enchant any item with any enchantment, such as a stick having Knockback II. However, mutually-exclusive enchantments, such as Infinity and Mending, cannot be applied this way or via (though are still available via ).

The experience costs for using books are considerably less than for combining items with similar enchantments since the books themselves cost levels to create. However, it's still an extra cost, and enchanting items directly has a chance to get multiple enchantments. The advantage of books is that they can be stockpiled for use on an item of choice and allow for controlled combinations. For example, a Silk Touch book can be used on an axe, pickaxe, or shovel, and the player can decide which item receives which enchantment.

Disenchanting
The only way to disenchant items is via the grindstone or by repairing the items via the crafting grid. Using the grindstone removes all enchantments (except Curse of Binding and Curse of Vanishing) and gives experience back based on the level of the enchantment(s) and their value.

Summary of enchantments
Each enchantment in the table below includes attributes that are possible for the player to acquire legitimately in Survival mode. Other combinations are possible in creative mode or with cheats, mods, or third-party software.

The table may be inaccurate and is subject to change.
 * Max Level: The maximum level of experience is 2147483647 (2^31)-1 (the maximum value for ints in Java), which can be obtained using commands. However, items with levels higher than 32767 (2^15-1) or lower than -32768 get changed to between -32768 and 32767 when moved in the inventory.
 * Primary Items: The items that can receive the enchantment legitimately in Survival mode by using an enchanting table. Items of any material can be enchanted (some more easily than others).
 * Secondary Items: Items that, in Survival mode, cannot receive the enchantment from an enchanting table but can from an enchanted book with an anvil.
 * Weight: Relative probability of the enchantment being offered.

Summary of enchantments by item
Enchantments that have multiple levels are shown with their maximum level numbers. Mutually exclusive enchantments can be combined (e.g., ).

The tables below summarize the enchantments that can be given to specific items $$ and in Survival mode $$. (Creative mode in Java Edition allows any item to have any enchantment.) Enchantments that can be applied to both hand slot items and armor slot items are listed in both tables.


 * An enchanting table indicates the item can receive the enchantment legitimately in Survival mode by using an enchanting table.
 * An anvil indicates the item cannot receive the enchantment legitimately in Survival mode by using an enchanting table (an enchanting table never offers the enchantment for the item), but can receive the enchantment by another method (for example, using an anvil to combine the item with an enchanted book or another enchanted item; note the enchanting table could still apply the enchantment to the item as a random additional enchantment).

Item data

 * The item's main tag.