Skip to main content
← All Guides
Redstone & Mechanics · 10 min read

How Enchanting Works in Minecraft

Deep guide to Minecraft enchanting mechanics. Covers bookshelf placement, level costs, enchantment seed manipulation, lapis requirements, and how to get specific enchantments.

Enchanting in Minecraft looks random, but it follows a precise algorithm. Understanding bookshelf counts, level requirements, the enchantment seed, and how the game selects enchantments lets you make better decisions at the enchanting table. This guide breaks down the entire system.

The enchanting table setup

An enchanting table draws power from nearby bookshelves. The more bookshelves, the higher the maximum enchantment level (up to 30). Bookshelves must be:

  • Exactly 2 blocks away from the table (1 block of air between shelf and table).
  • On the same level as the table or 1 block above it.
  • With nothing between the shelf and the table (the air block must be truly empty, no carpet, snow layers, or torches).

You need exactly 15 bookshelves to reach the maximum level 30 enchantment. More than 15 has no additional effect.

Standard bookshelf arrangement (top-down):

     B B B B B
     B       B
     B   T   B
     B       B
     B B B B B

B = Bookshelf
T = Enchanting table
(spaces between B and T are air blocks)

This layout uses 16 bookshelves (one more than needed).
Remove one corner bookshelf for exactly 15.

How enchantment levels work

The enchanting table shows three enchantment options, corresponding to level costs (1-30). The level cost determines:

  1. Which enchantments are available. Higher levels unlock stronger enchantments. Sharpness V, Protection IV, and Efficiency V require level 30.
  2. How many enchantments can appear on one item. Higher level enchantments have a chance to add multiple enchantments simultaneously.
  3. The strength of each enchantment. Level 30 is more likely to produce tier III-V enchantments than level 1.

The three slots always show level costs proportional to the bookshelf count. With 15 bookshelves: slot 1 shows a low-level option (1-10), slot 2 shows a mid-level option (8-20), and slot 3 shows the maximum (always close to 30).

The enchantment seed

Each player has an "enchantment seed" that determines what enchantments appear on the table. The seed changes every time you enchant an item. If you see enchantments you don't want, you can reset the display by:

  1. Enchanting a cheap item (like a book or wooden shovel) with the level 1 option.
  2. Your seed resets, and all three enchantment options recalculate.
  3. Check the table again. If the enchantment you want still does not appear, repeat.

This is the standard method for "cycling" enchantments. It costs 1 level and 1 lapis per reset.

Lapis lazuli costs

Each enchantment costs lapis lazuli equal to the slot number:

  • Slot 1: 1 lapis lazuli, 1 level
  • Slot 2: 2 lapis lazuli, 2 levels
  • Slot 3: 3 lapis lazuli, 3 levels

The XP level requirement is shown on the slot, but the actual XP consumed is always 1, 2, or 3 levels (matching the slot number). You need to have the displayed level to unlock the option, but you do not lose all of it.

Enchanting books vs items

You can enchant items directly or enchant books. Trade-offs:

  • Direct enchanting applies enchantments appropriate to the item type. A sword can get Sharpness but not Efficiency. Multiple enchantments can stack on one enchant. This is the most efficient if the enchantment pool for that item is small.
  • Book enchanting draws from the full enchantment pool. The chance of getting a specific enchantment is lower, but books can be saved and applied later via anvil. Use books when cycling for rare enchantments like Mending (which cannot appear on the enchanting table for items, only books and villager trades).

Enchantment probabilities

The game calculates enchantments using these steps:

  1. Base enchantability of the item material (gold has highest, wood has lowest).
  2. A random modifier is applied to the level cost, creating a "modified level."
  3. The modified level determines which enchantments from the item's pool qualify.
  4. One primary enchantment is selected randomly from qualified enchantments.
  5. Additional enchantments are added with decreasing probability (50%, 25%, 12.5%, etc.).
  6. Conflicting enchantments are removed (you cannot get both Sharpness and Smite).

Gold items have the highest enchantability, meaning they get more and higher-level enchantments than diamond or netherite at the same level cost. This is why gold swords and axes sometimes appear with 3-4 enchantments at level 30.

The anvil and combining enchantments

Enchanted items and books combine on an anvil. Key rules:

  • Combining two identical enchantments of the same level increases the level by 1 (Sharpness IV + Sharpness IV = Sharpness V).
  • The XP cost increases with each anvil operation. After 6 operations on a single item, it becomes "too expensive" (39+ levels) and the anvil refuses.
  • To minimize anvil costs, combine books together first (book + book), then apply the final combined book to the item. This reduces total operations on the target item.
  • Order matters: placing the target item in the first slot and the sacrifice in the second costs less than the reverse in some cases.

Optimal enchanting strategy

  1. Build a full bookshelf setup (15 bookshelves) around your enchanting table.
  2. Use a villager trading hall for guaranteed enchanted books (Mending, Unbreaking III, etc.).
  3. Enchant iron or diamond tools at level 30 for the primary enchantment (Efficiency V, Fortune III).
  4. Buy specific books from librarians and apply them via anvil.
  5. Combine books before applying to items to stay under the "too expensive" cap.

Common mistakes

  • Blocking bookshelves. Torches, carpet, or snow layers between the bookshelf and table block the shelf's effect. Keep that air gap completely empty.
  • Over-using the anvil. Each anvil operation adds to the "work penalty." After too many operations, the item becomes unfixable. Plan your enchantment order in advance.
  • Ignoring material enchantability. Gold gets better enchantments than iron at the same level. If you want a highly enchanted item for merging, enchant gold first.
  • Not cycling. If the enchantment table shows bad options, spend 1 level to enchant a cheap book or shovel. This rerolls the table for your next attempt.

Frequently asked questions

Can I get Mending from the enchanting table?

No. Mending is a "treasure enchantment" and cannot appear on the enchanting table. It can only be found in loot chests, from fishing, or from librarian villager trades. Villager trading is the most reliable source.

What is the best material to enchant?

For the item you plan to use, enchant netherite or diamond. For cycling enchantments cheaply, enchant wooden shovels (cost 1 level per cycle). For maximum enchantment variety, gold has the highest enchantability.

Does Fortune and Silk Touch conflict?

Yes. You cannot have both on the same tool. If you want both, make two separate pickaxes.

Need a server? Astroworld Hosting runs NVMe SSDs and Pterodactyl panel on every plan.

Related Tools & Resources

🔧

Minecraft Tools

Calculators, generators & server tools

🧱

Item Database

Browse all Minecraft items, stats & recipes

⚒️

Crafting Recipes

Visual crafting guides for every recipe