Guides

How Many Bookshelves for Max Enchantment in Minecraft (Level 30 Setup)

You need exactly 15 bookshelves placed one block away from an enchanting table to hit level 30 — here's the exact layout, materials and rules.

Jun 27, 2026 7 min readBy MineBuildr Team
How Many Bookshelves for Max Enchantment in Minecraft (Level 30 Setup)

Key takeaways

  • You need exactly 15 bookshelves to reach level 30 enchantments — the maximum the enchanting table can offer.
  • Bookshelves must be placed one block away from the enchanting table, on the same Y level or one block higher, with no solid block between them and the table.
  • Each bookshelf costs 6 planks (any wood) and 3 books — 90 planks and 45 books total for the full setup.
  • The setup is identical in Java and Bedrock Edition since the 1.20 enchanting parity update.
  • Once placed, every enchantment slot rolls up to level 30, but you still need 3 lapis lazuli per top-tier enchant and at least 30 XP levels.

If you've ever stood next to a lonely enchanting table watching it offer level 4 enchantments while you've got a stack of diamond gear in your inventory, you know the frustration. The fix is bookshelves — and the magic number is 15. This guide breaks down exactly where to put them, what they cost, and the two rules players still get wrong in 2026.

The short answer

Why 15 bookshelves?

The enchanting table caps at 15 "bookshelf power." Each bookshelf within range and unblocked contributes 1 power. At 15 power, the third enchantment slot is guaranteed to roll up to level 30. Below 15, the cap scales down linearly — 8 bookshelves caps you at level 15, 0 bookshelves caps you at level 8. The 16th bookshelf onward is purely decorative.

The exact bookshelf layout

The optimal placement is a 5×5 square ring around the enchanting table, with the table in the center of an empty floor:

  1. Place the enchanting table in the middle of a 5×5 area.
  2. Leave a 1-block air gap on all four sides of the table.
  3. Place bookshelves along the outer ring at the same Y level as the table — that's 8 bookshelves.
  4. Add a second ring of bookshelves directly above the first — 7 more bookshelves (you can skip one corner or any block, since 15 is the cap).

The exact arrangement doesn't matter as long as the bookshelf is within a 5×5×2 cube around the table and the line between bookshelf and table is unobstructed. Even diagonal bookshelves count.

The two rules players still get wrong

Rule 1 — Keep one block of air between table and bookshelf

If a bookshelf is touching the enchanting table, it does NOT count. There has to be exactly one block of air between them. This is the single most common mistake — every time you see a screenshot of a 15-bookshelf setup that's only giving level 12, this is why.

Rule 2 — Don't block the line of sight

If any solid block sits between a bookshelf and the table — a torch on the side, a carpet, a button, a slab at the wrong height — that bookshelf is ignored. Half-slabs, fences, and even soul sand block it. Keep the gap empty: use floor torches or place lighting outside the bookshelf ring.

Material cost for the full setup

Each bookshelf is crafted from 6 wood planks and 3 books. Each book is 3 paper + 1 leather. So 15 bookshelves cost:

  • 90 wood planks (~12 logs)
  • 45 books = 135 paper + 45 leather
  • 135 paper = 135 sugarcane
  • 45 leather — usually the bottleneck (~15 cows or a Leatherworker villager)

If you have a Librarian set up, buying bookshelves directly is often cheaper — a Journeyman Librarian sells bookshelves for 9 emeralds each. See our full villager trading guide for the fastest way to set this up.

Lapis lazuli and XP costs per enchant

Even with a perfect 15-bookshelf setup, each enchantment still costs:

  • 1–3 lapis lazuli per enchant (3 for a level 30 slot)
  • 1–3 XP levels consumed (the table shows a level 30 cost, but only deducts 3 actual levels — you still need to BE level 30 to use that slot)

Plan your XP routes around this — the fastest XP methods guide covers the most efficient ways to get to level 30 quickly.

Does this work the same in Bedrock?

Yes. Since the 1.20 enchanting parity update, Bedrock and Java use the same 15-bookshelf cap, the same 1-block gap rule, and the same line-of-sight rule. Bedrock had a slightly different roll table historically, but the bookshelf math is now identical.

What about the enchanted book trick?

Some players skip the enchanting table entirely and farm enchanted books from Librarian villagers, then apply them with an anvil. This costs more XP per enchant but lets you target exact enchants like Mending or Sharpness V without rolling. The two strategies complement each other — use the table for general gear, librarians for specific high-value enchants.

Build the table once, build it right, and you'll enchant every piece of gear in your world from the same setup. Then graduate to a trading hall for the books the table won't roll.

Frequently asked questions

How many bookshelves do you need for level 30 enchantments?+

Exactly 15 bookshelves. They must be placed within a 5×5×2 area around the enchanting table, with one block of air between each bookshelf and the table, and no solid blocks blocking the line of sight.

Do bookshelves need to be next to the enchanting table?+

No — bookshelves must NOT be touching the enchanting table. Leave a 1-block gap of air between every bookshelf and the table, otherwise that bookshelf doesn't count toward the power.

Can you have too many bookshelves?+

Extra bookshelves beyond 15 don't break anything but provide no benefit. The enchanting table caps at 15 bookshelf power, so the 16th bookshelf and beyond are purely decorative.

How much does 15 bookshelves cost?+

Roughly 90 wood planks, 135 paper, and 45 leather (12 logs, ~3 stacks of sugarcane, and 15 cows worth of leather). A Journeyman Librarian villager also sells bookshelves for 9 emeralds each.

Does the bookshelf rule work in Bedrock Edition?+

Yes. Since the 1.20 enchanting parity update, Bedrock and Java both cap at 15 bookshelves and use identical placement rules — the 1-block gap and line-of-sight requirements apply to both editions.