Interactive Anvil Enchantment Optimizer
Why Naive Book Chains Trigger “Too Expensive!”
Every item and enchanted book in Minecraft carries a hidden NBT integer tag called RepairCost (computed from anvilUses). Whenever you combine a Target (left slot) and a Sacrifice (right slot) on an anvil, the game charges three separate level components:
StepCost = (2^uses_target - 1) + (2^uses_sacrifice - 1) + Σ(EnchantmentLevel × SacrificeMultiplier)
After combining, the output item’s new counter becomes max(uses_target, uses_sacrifice) + 1. In Survival mode, if StepCost ≥ 40, the anvil blocks the craft with “Too Expensive!”.
If you drop seven books onto a pair of Netherite Boots one by one in a straight chain, the boots’ counter climbs 0 → 1 → 2 → 3 → 4 → 5 → 6, adding prior-work penalties of 0 + 1 + 3 + 7 + 15 + 31 = 57 penalty levels alone—hitting 31 + enchantment cost ≥ 40 on the sixth book and locking out your seventh enchantment permanently. Pairing books into a balanced binary tree keeps the maximum depth at 3 uses (max penalty 7 levels), cutting total level cost nearly in half.
Verified Book Sacrifice Multipliers & Slot Ordering Rule
Notice that the anvil charges enchantment levels only for the item in the right (sacrifice) slot—never for enchantments already sitting on the left (target) slot! Therefore, whenever you combine two books together, always place the higher-value book in the left slot and the cheaper book in the right slot so you only pay the high cost once when merging onto the final gear piece.
| Book Multiplier | Enchantments Using This Multiplier | Max Level Book Cost |
|---|---|---|
× 1 (Common) |
Protection IV, Feather Falling IV, Unbreaking III, Sharpness V, Smite V, Efficiency V, Power V, Loyalty III, Quick Charge III, Density V | 3 to 5 levels |
× 2 (Uncommon) |
Mending, Depth Strider III, Frost Walker II, Respiration III, Aqua Affinity, Looting III, Sweeping Edge III, Fire Aspect II, Fortune III, Riptide III, Breach IV, Wind Burst III | 2 to 8 levels |
× 4 (Rare / Treasure) |
Thorns III (12), Soul Speed III (12), Swift Sneak III (12), Silk Touch I (4), Infinity I (4), Channeling I (4) |
4 to 12 levels |
For a full derivation of the RepairCost NBT tag and repair material penalties, read our companion study: How the Anvil Prior Work Penalty Works.
Java Edition vs. Bedrock Edition Anvil Rules
Java Edition (1.21.4)
Charges full enchantment value for every enchantment on the right-slot book, even if incompatible enchantments exist on the target (+1 level conflict penalty per blocked enchant).
Bedrock Edition (1.21.50)
Uses identical 2^n - 1 prior-work penalties and the same 39-level Survival ceiling, except upgrades only charge the difference in enchantment levels when raising an existing enchantment (e.g., Sharpness IV + IV) and charges 0 conflict penalty for rejected enchantments.
/xp set @s 0 levels between each step on 7-enchantment Netherite Boots (Soul Speed III, Thorns III, Protection IV, Feather Falling IV, Depth Strider III, Unbreaking III, Mending) — verified exact 56 total levels and 21-level peak final combine.