Discord

Minecraft enchanted book generator: combine enchantments and cut the XP cost

Enchanted books are some of the most valuable items in Minecraft. They let you choose exactly which enchantments go on your weapons, armor and tools, with none of the randomness of an enchanting table. The catch is that combining many enchantments on an anvil gets expensive fast, and it is easy to run into "Too Expensive!" once the cost passes 39 levels. Our enchanted book generator takes care of that. You pick the enchantments, and the tool flags conflicts, works out the XP cost and suggests the best order to combine them in.

The tool has a full database of 40+ enchantments with descriptions and compatibility info. It runs entirely in your browser, so there is nothing to download or install. Once your book is set up, copy the ready-made /give command and use it in Creative mode or on a server.

Choose the enchantments for the book
Sharpness
Increases damage dealt to all mobs
Max V | Book multiplier: x1
Smite
Increases damage dealt to undead mobs
Max V | Book multiplier: x1
Bane of Arthropods
Increases damage dealt to arthropods (spiders, bees, silverfish)
Max V | Book multiplier: x1
Knockback
Knocks hit mobs further away from the player
Max II | Book multiplier: x1
Fire Aspect
Sets hit mobs on fire
Max II | Book multiplier: x2
Looting
Increases the loot dropped by defeated mobs
Max III | Book multiplier: x2
Sweeping Edge
Increases the damage of a sword's sweeping attack
Max III | Book multiplier: x2
Density
Increases fall damage dealt with a mace
Max V | Book multiplier: x1
Breach
Reduces the effectiveness of the target's armor
Max IV | Book multiplier: x2
Wind BurstTreasure
Launches the player upward after a mace hit
Max III | Book multiplier: x2
Power
Increases the damage of bow arrows
Max V | Book multiplier: x1
Punch
Increases the knockback of bow arrows
Max II | Book multiplier: x2
Flame
Arrows set hit mobs on fire
Max I | Book multiplier: x2
Infinity
Shooting does not use up arrows (needs 1 arrow in the inventory)
Max I | Book multiplier: x4
Quick Charge
Shortens the crossbow's loading time
Max III | Book multiplier: x1
Multishot
The crossbow fires three arrows at once
Max I | Book multiplier: x2
Piercing
Arrows pass through multiple targets
Max IV | Book multiplier: x1
Loyalty
The trident returns to the player after being thrown
Max III | Book multiplier: x1
Impaling
Deals extra damage to aquatic mobs (Java) or wet targets (Bedrock)
Max V | Book multiplier: x2
Riptide
Launches the player forward in rain or water
Max III | Book multiplier: x2
Channeling
Summons lightning on a hit mob during a thunderstorm
Max I | Book multiplier: x4
Protection
Reduces most types of damage
Max IV | Book multiplier: x1
Fire Protection
Reduces fire damage and shortens burning time
Max IV | Book multiplier: x1
Blast Protection
Reduces explosion damage and knockback
Max IV | Book multiplier: x2
Projectile Protection
Reduces projectile damage (arrows, ghast fireballs)
Max IV | Book multiplier: x1
Thorns
Damages mobs that attack you
Max III | Book multiplier: x4
Respiration
Extends how long you can breathe underwater
Max III | Book multiplier: x2
Aqua Affinity
Restores normal mining speed underwater
Max I | Book multiplier: x2
Feather Falling
Reduces fall damage
Max IV | Book multiplier: x1
Depth Strider
Increases movement speed underwater
Max III | Book multiplier: x2
Frost WalkerTreasure
Freezes the water under the player's feet into ice
Max II | Book multiplier: x2
Soul SpeedTreasure
Increases speed on soul sand and soul soil
Max III | Book multiplier: x4
Swift SneakTreasure
Increases movement speed while sneaking
Max III | Book multiplier: x4
Efficiency
Increases mining speed
Max V | Book multiplier: x1
Silk Touch
Lets you collect blocks in their original form
Max I | Book multiplier: x4
Fortune
Increases the drops from mined blocks
Max III | Book multiplier: x2
Luck of the Sea
Increases the chance of catching treasure
Max III | Book multiplier: x2
Lure
Shortens the wait for a fish to bite
Max III | Book multiplier: x2
Unbreaking
Increases the item's durability
Max III | Book multiplier: x1
MendingTreasure
Repairs the item using experience orbs
Max I | Book multiplier: x2
Curse of VanishingTreasureCurse
The item disappears when the player dies
Max I | Book multiplier: x4
Curse of BindingTreasureCurse
The item cannot be removed once equipped
Max I | Book multiplier: x4

How to use the enchanted book generator

It only takes a few steps:

  1. Filter the enchantments. Use the category buttons (Melee, Ranged, Armor, Tools, Universal) or the search box to find the enchantments you want quickly.
  2. Click an enchantment to select it. It lights up green. If it has several levels (for example Sharpness I-V), pick the level you want from the dropdown.
  3. Check for conflicts. Enchantments that clash with the ones you already picked are grayed out automatically and marked "Conflict". You can't add them to the same book.
  4. Read the combining order. The "Optimal combining order on the anvil" section shows step by step how to combine the books on an anvil to keep the XP cost down.
  5. Copy the /give command. The ready-made command gives you a book with all your enchantments right away in Creative mode.

What are enchanted books in Minecraft?

An enchanted book is a special item that stores one or more enchantments. Unlike enchantments applied straight to an item, a book is portable: you can stash it in a chest, trade it to another player or use it on an anvil whenever you like. That gives you a lot of flexibility when you plan your gear.

Enchanted books have one more big advantage: they can hold treasure enchantments, such as Mending, Frost Walker, Soul Speed or Swift Sneak. These never show up at an enchanting table. Depending on the enchantment, you find them in chests, buy them from a librarian or fish them up.

Where to get enchanted books

There are several ways to get enchanted books:

Enchantment conflicts: what can't go together

Some enchantments exclude each other. You can't put them on the same item or combine them in one book. These are the main conflict groups:

How the anvil's "prior work" penalty works

Every time an item goes through an anvil (combining enchantments or repairing), its hidden "prior work" counter goes up. The prior work penalty is 2n - 1 levels, where n is the number of earlier anvil uses:

The cost on the anvil is the prior work penalties of both items added together, plus the cost of the enchantments themselves. Every enchantment has its own cost multiplier. On a book, Mending has a x2 multiplier, so Mending costs 2 levels, while Sharpness V, with a x1 multiplier, costs 5 levels (level x multiplier).

Best combining strategy: the binary tree

The key to staying under the "Too Expensive!" limit is keeping the prior work penalty low. Instead of adding enchantments one after another (linearly), combine them in pairs:

  1. Step 1: combine 8 books into 4 pairs (each resulting book has prior work = 1)
  2. Step 2: combine the 4 results into 2 pairs (prior work = 2)
  3. Step 3: combine the 2 results into 1 book (prior work = 3)
  4. Step 4: combine the final book with the item you are enchanting (prior work = 4, penalty = 15)

With linear combining (adding one enchantment at a time), prior work climbs to 6 after 6 steps and the cost goes over the limit. With binary combining you fit the same 8 enchantments into 4 steps with prior work = 4 (a penalty of 15 levels). Our generator works out the best order for you automatically.

Best enchantment combinations for different items

Ideal sword (7 enchantments)

Ideal pickaxe

Ideal armor: chestplate

Ideal bow (5 enchantments)

Treasure enchantments: what makes them different

Treasure enchantments are a special category that you can't get at an enchanting table. You get them from chests, librarians, fishing or bartering with piglins, depending on the enchantment. Here is the full list of treasure enchantments:

Tips for advanced players

Librarian book farming

The best way to get a specific enchantment is to cycle a librarian's trades. Place a lectern next to an unemployed villager. It takes the librarian profession and offers a random enchanted book. If you don't like the offer, break the lectern, place it again and check the new offer. Repeat until the enchantment you want turns up. Once you make the first trade, the offer is locked in for good.

Enchanting order for a new sword

For a new netherite sword, first build all the enchantments into a single book on the anvil (using the generator above), and only then apply the final book to the sword.

Java Edition rules

Our generator is set up for Java Edition, including the 39-level "Too Expensive!" limit.

The /give command: how to use it

The /give command gives you an enchanted book instantly, in Creative mode or with operator permissions. The generator builds the whole command for you.

Copy the command from the generator, open the chat in game (T key) and paste it (Ctrl+V). The book appears in your inventory. Selectors: @p = nearest player, @s = the one running the command, @a = all players, @r = random player.

Frequently asked questions

How do you combine multiple enchantments on one book in Minecraft?

Use an anvil: put one enchanted book in the left slot and another in the right slot, and the enchantments move onto one book. The order is what matters: combine the more expensive enchantments in pairs first, then combine the results with each other. That keeps the "prior work" penalty down and helps you stay within the 39-level limit.

Which enchantments conflict with each other in Minecraft?

The main conflicts: Sharpness conflicts with Smite and Bane of Arthropods. Protection conflicts with Fire Protection, Blast Protection and Projectile Protection. Silk Touch conflicts with Fortune. Infinity conflicts with Mending. Multishot conflicts with Piercing. Riptide conflicts with Loyalty and Channeling.

What does "Too Expensive!" mean on an anvil?

The "Too Expensive!" message appears when an anvil operation would cost more than 39 experience levels in Java Edition. Every combine or repair on an anvil raises the item's "prior work" penalty, which is the penalty for earlier anvil uses. The penalty is 2^n - 1, where n is the number of earlier operations. A good combining order (the binary tree) helps you stay under the limit.

What is the best order for combining enchantments on an anvil?

Combine them like a binary tree: first in pairs (8 books become 4), then pairs of pairs (4 become 2), then 2 become 1. Put the more expensive enchantments (the ones with a higher cost multiplier) earlier. That keeps the total prior work penalty low and lets you fit 6-7 enchantments on one item.

What is the difference between an enchanted book and an enchantment from an enchanting table?

An enchanted book lets you pick the exact enchantment and level, while an enchanting table gives random combinations. You can find books in chests, buy them from a librarian or make them at an enchanting table. Some treasure enchantments (Mending, Frost Walker, Soul Speed) can't be rolled at an enchanting table at all.

How do you use the /give command to get an enchanted book?

Our generator builds the /give command for you. Pick your enchantments, click "Copy command", open the in-game chat (T key), paste the command (Ctrl+V) and press Enter. The command works in Creative mode or with operator permissions.

How many enchantments can one item have?

There is no hard limit on the number of enchantments per item, but the 39-level anvil limit and enchantment conflicts hold you back. In practice a sword can take 6-7 of them (Sharpness, Knockback, Fire Aspect, Looting, Sweeping Edge, Unbreaking, Mending).

Where can you find enchanted books in Minecraft?

You can find enchanted books in structure chests (dungeons, abandoned mineshafts, strongholds, bastion remnants, ancient cities), buy them from a librarian villager for emeralds, fish them up with a rod enchanted with Luck of the Sea, or make them yourself at an enchanting table. Trial chambers (1.21 and later) have a chance of holding rare enchantments.

Related tools and guides