To use an enchantment table in Minecraft, craft it from four obsidian, two diamonds and one book, put your item in the left slot and up to three lapis lazuli beside it, then pick one of the three options it offers. Surround it with 15 bookshelves, each with one block of air between it and the table, and the top option reaches level 30.
Two things surprise most players. You need the level shown on an option, but you're only charged 1 to 3 levels for it, and the enchantment you get is still random. If you want one specific result rather than a gamble, villager trading and the anvil are the better tools.
I picked Minecraft back up recently after a long gap, mostly as a way to switch my brain off after a day of client calls and spreadsheets, and the enchantment table is one of those mechanics that looks simple on the surface and then quietly punishes you for not understanding the maths underneath it. So here's the full, specific walkthrough, not the vague "just enchant stuff" version you'll find on most pages.
What you need to build an enchanting table
The crafting recipe for an enchantment table is fixed and non-negotiable:
- 4 obsidian blocks
- 2 diamonds
- 1 book (made from 3 paper plus 1 leather)
The Minecraft Wiki lists the recipe as Book + Diamond + Obsidian and shows the 3 by 3 arrangement as a picture rather than in its text, so copy that picture or let your game's recipe book place the items for you instead of guessing the shape. The wiki gives the same ingredients for Java and Bedrock. That gives you one table. The obsidian is the expensive part early game since you need a diamond pickaxe to mine it, which means you've got a bit of a chicken-and-egg problem on your first playthrough: you need diamond gear to get obsidian to build the thing that helps you enchant better gear.
Where to place it, and why bookshelves matter more than people admit
Once it's crafted, you place the enchantment table down like any block. On its own, sitting alone in a room, it will only ever offer you low-level enchantments, which is frankly not worth your time. To get access to level 30 enchantments, the strong ones, you need to surround it with bookshelves.
The exact layout matters:
- Leave one block of air, or a replaceable block, between the table and each bookshelf, so the shelves aren't touching it directly
- Put each shelf exactly two blocks out from the table. The Minecraft Wiki's enchanting mechanics page says shelves must sit two blocks from the table along one horizontal axis, up to two blocks along the other, and at the table's height or one block higher. In practice that's the outer edge of a 5 by 5 square with the table in the centre: 16 spots at table level and 16 more one block up
- You need 15 bookshelves total for maximum enchanting power, which the Minecraft Wiki says unlocks the level 30 options. A layout that works: 8 shelves in the ring at table level and 7 in the ring above, with the empty spots on one side as your way in
- Keep the gap clear: the wiki says most blocks in between, even transparent ones like torches, stop the table connecting to the shelves
Fifteen bookshelves isn't cheap. Each bookshelf takes 6 planks and 3 books, and each book takes 3 paper and 1 leather, so you're looking at roughly 45 books and 90 planks across the full set-up. If you're playing survival rather than creative, that's a real afternoon of sugar cane farming, cow hunting for leather, and tree chopping before you've enchanted a single item.
If the top option stays low
- Count the shelves. Fewer than 15 connected bookshelves means the top option won't reach level 30.
- Clear the gap. The wiki says most blocks between table and shelf, even a torch, cut that shelf out. Walk the ring and remove anything that isn't air or a replaceable block.
- Check the spacing. The wiki describes shelves placed next to the table with one block of air between them. Shelves pushed right up against the table don't leave that gap, so move them out one block.
Then put the item back in the slot and look at the bottom option again before you spend any lapis.
A worked example: enchanting a diamond pickaxe
Say you've built your table with the full 15 bookshelves and you want to enchant a diamond pickaxe for mining efficiency. Here's what happens when you right-click the table:
- You open the enchanting interface and place the pickaxe in the single item slot
- Add lapis lazuli to the slot beside it. You can put in any amount, but the Minecraft Wiki says only three at most are needed for one enchantment
- Three options appear, needing 1, 2 and 3 lapis lazuli. With all 15 shelves in place, the bottom one can need level 30
- Each option shows scrambled glyphs, which don't affect the result, but hovering over an option (or tapping it on mobile) shows one enchantment that will be applied
- You pick one, and the game randomly assigns one or more enchantments based on that level
Say you're on 30 levels with 3 lapis and you pick the level 30 option. The wiki says you must have at least 30 levels but pay only 3 levels and 3 lapis, so you finish on 27 levels and could enchant again almost at once. What the level 30 option doesn't guarantee is Efficiency V or Unbreaking III. It might give you Efficiency II and Silk Touch, or Unbreaking I and Fortune I, or any other combination the game's random enchantment algorithm decides is appropriate for that cost band and your current bookshelf count. You're paying for a gamble, not choosing from a menu.
The uncomfortable truth about enchantment tables
The crafting and the bookshelves are only half of it. The table is randomised by design: you choose a level and the game chooses the enchantments. That makes it one of the worst tools in the game for getting a specific, useful result.
If you want Mending on your pickaxe, or Silk Touch specifically, or a clean Sharpness V sword, the enchantment table will happily take your lapis and XP and give you something close but not quite right, repeatedly, for hours. The far more efficient route, and the one experienced players use, is:
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
- Trade with librarian villagers, who can offer specific enchanted books (including Mending) for emeralds, and who can be "locked in" to a good trade by breaking and replacing their lectern
- Use an anvil to combine two items or merge an enchanted book onto a tool, which lets you stack enchantments precisely rather than hoping for them
- Use the enchantment table mainly for early or disposable gear, where the randomness doesn't cost you much if it goes wrong
I'd rather be upfront about that than let you waste an evening's worth of bookshelves chasing a specific enchantment the table was never going to reliably give you.
Experience levels: the other cost people forget
Experience works differently from what the numbers on screen suggest: you need the level, but you spend 1 to 3. The Minecraft Wiki says the number of levels you're charged is the same as the lapis lazuli requirement, so the first option costs 1 level, the second 2 and the third 3. The level shown is a minimum you must hold, and with a fully bookshelved table that minimum can be 30. Getting to level 30 from scratch still takes a fair amount of grinding: mining, killing mobs, breeding animals, or smelting items all generate small amounts of XP, but you'll typically need several stacks of ores smelted or a decent mob farm running before you're sitting on a comfortable XP buffer.
A practical approach: once you're at level 30, enchant straight away. Each top-level roll only takes 3 levels, so at 33 levels you can do one level 30 roll and still be eligible for another; only when you drop below 30 does the top option go out of reach.
Lapis lazuli: how much you'll need
Each enchantment uses 1, 2 or 3 lapis lazuli, matching the option you pick, and the wiki says three at most are needed for one enchantment. Keep a stash of at least 20 to 30 lapis before you start a serious enchanting session, since every top-level attempt takes 3 and you'll want several attempts to get something workable. You can put any amount in the slot, so a full stack is fine: the table only takes what each enchantment costs.
Quick step-by-step summary
- Mine 4 obsidian with a diamond pickaxe
- Get 2 diamonds and craft 1 book
- Craft the enchantment table on a crafting table
- Build or gather materials for 15 bookshelves (45 books, 90 planks roughly)
- Place the table, then surround it with 15 bookshelves, leaving one block of air between table and shelves
- Stock up on 20 to 30 lapis lazuli
- Reach level 30 for the top option; picking it costs only 3 of those levels
- Pick your option; for anything specific, use villager trading and the anvil instead
If you fancy something lighter between building sessions, here's my guide on free games to play offline and online.
Frequently asked questions
How many levels does enchanting cost?
You must have the level shown on the option, but you're charged only its lapis cost: 1, 2 or 3 levels. A level 30 option needs 30 levels and takes 3 of them, plus 3 lapis.
Can I see what enchantment I will get?
Partly. Hovering over an option, or tapping it on mobile, shows one of the enchantments that will be applied. Any others that come with it stay hidden until you enchant.
Do I need to stack lapis?
No. The Minecraft Wiki says at most three lapis are needed for one enchantment. You can leave more in the slot and the table takes only what each enchantment costs.
What's the fastest way to get a specific enchanted book in Minecraft?
Trading emeralds with a librarian villager is usually faster and more reliable than relying on the enchantment table, since librarians can directly offer enchanted books including ones the table rarely produces, like Mending.
Run a business, a brand or a blog? I feature tools, products and expert guest posts for an audience of 15,000. See how it works