You need 15 bookshelves to get max (level 30) enchantments in Minecraft Java Edition.

Quick Scoop: Max Enchant Setup (Java)

For full level 30 enchants on an enchanting table in Java:

  • Number of bookshelves: 15 total.
  • Placement distance: 1 block away horizontally from the enchanting table, with air between the table and the shelves.
  • Height: Shelves must be at the same level as the table or one block higher (up to 2-high ring works).
  • Blocking: Any solid block between table and shelves cancels that shelf’s effect.

A common layout is a 5×5 “ring” with the enchanting table in the center and a 1-block air gap all around.

Simple Layout Examples

You can use any shape as long as the rules above are followed, but players commonly use:

  • 5×5 hollow square: Table in the middle, bookshelves in a one-block-thick ring, total 15.
  • Two-layer ring: 3×3 of bookshelves around the table (with a 1-block gap), stacked 2 high, still only 15 counted.
  • Compact corner/L-shape: Shelves in two walls around a corner of the table, adjusted so the total is 15.

In community discussion and the official-style guides, the “magic number” of 15 bookshelves is consistently cited as the cap for boosting enchant levels to 30.

Why Not More Than 15?

  • Each bookshelf increases the potential enchantment level.
  • Once you reach 15, the game caps the boost; extra shelves nearby don’t increase levels further.
  • You can still decorate with more shelves, but only 15 in valid positions will actually count.

So for max enchantment in Java , craft 15 bookshelves, place them correctly around your table with a 1-block air gap, and you’re set for level 30 enchants. TL;DR:
For “how many bookshelves for max enchantment Java,” the answer is exactly 15 , placed 1 block away around your enchanting table, with nothing blocking the line of sight between them.

Information gathered from public forums or data available on the internet and portrayed here.