Prior Work Penalty = 2ⁿ - 1 | Output Penalty = max(Left, Right) × 2 + 1 | Too Expensive Cap: ≥ 40 Levels
How the Minecraft Anvil Prior Work Penalty Works in 1.21+
Every time you modify an item or an enchanted book on an anvil, Minecraft increments an internal NBT tag called RepairCost. This tag governs the Prior Work Penalty (PWP), which doubles exponentially with every single anvil operation according to the formula:
Penalty = 2ⁿ - 1
0 works = +0 XP | 1 work = +1 XP | 2 works = +3 XP | 3 works = +7 XP | 4 works = +15 XP | 5 works = +31 XP | 6 works = +63 XP (BLOCKED!)
In Survival mode, Minecraft strictly caps anvil operations at 39 levels. If an operation costs 40 levels or more, the anvil interface displays the dreaded "Too Expensive!" label and refuses to execute the combination.
Why Linear Combining Always Fails
If you take a sword or boots and apply enchanted books one after another directly onto the item:
- Item + Book 1 (Penalty: 0) = Output has Penalty 1
- Item + Book 2 (Penalty: 1) = Output has Penalty 3
- Item + Book 3 (Penalty: 3) = Output has Penalty 7
- Item + Book 4 (Penalty: 7) = Output has Penalty 15
- Item + Book 5 (Penalty: 15) = Output has Penalty 31
- Item + Book 6 (Penalty: 31) = BLOCKED! 31 + Book Cost ≥ 40 (Too Expensive!)
Because boots and swords require 6 to 8 enchantments, sequential combining will permanently brick your God Gear before you can finish it.
The Solution: Balanced Binary Tree Combining
Rather than combining books directly onto the item, pair books with each other in an equal tournament tree:
- Combine
Book A + Book Binto Combined Book AB (Penalty = 1). - Combine
Book C + Book Dinto Combined Book CD (Penalty = 1). - Combine
Book AB + Book CDinto Mega Book ABCD (Penalty = 3). - Finally, combine
Base Item + Mega Book ABCD. The base item experiences only 1 or 2 anvil uses, keeping the final cost comfortably below 25 levels!
Left Slot vs. Right Slot Cost Multipliers
Anvil combination costs are asymmetrical. When combining two books or an item and a book:
- Slot 1 (Left / Target): Keeps its base item type. The anvil does not charge extra XP for the enchantments already present on the left item.
- Slot 2 (Right / Sacrifice): Is destroyed. The anvil charges XP for every enchantment transferred from the right item multiplied by its book multiplier.
Gold Rule: Always place the item or book with the higher total enchantment multiplier on the LEFT, and the cheaper enchantment on the RIGHT. Doing this correctly can save 15 to 30 levels per build!
Minecraft 1.21 Tricky Trials: The Mace & New Enchantments
Minecraft 1.21 introduced the Mace and 3 exclusive enchantments:
- Wind Burst (I–III): Bounces the player upwards upon hitting a smash attack. Fully compatible with all other enchantments.
- Density (I–V): Adds extra damage per block fallen (+0.5/lvl). Mutually exclusive with Breach, Smite, and Bane of Arthropods.
- Breach (I–IV): Reduces enemy armor effectiveness by 15%/lvl (up to 60%). Ideal for PvP. Mutually exclusive with Density, Smite, and Bane of Arthropods.
Frequently Asked Questions
How do I avoid the "Too Expensive!" cap on an anvil?
Combine your enchanted books in pairs (Book 1 + Book 2, Book 3 + Book 4) rather than applying them one-by-one onto the tool. This keeps the Prior Work Penalty low (binary tree structure) and keeps every step under 30 levels.
Can I put both Density and Breach on the same Mace in 1.21?
No. Density and Breach are mutually exclusive in survival Minecraft, along with Smite and Bane of Arthropods. You must choose either Density (best for PvE smash damage) or Breach (best for PvP armor piercing).
Why does placing a book on the left vs right change the XP cost?
The anvil only charges enchantment transfer fees for the sacrifice item in the right slot. Putting the book with the higher multiplier on the left avoids paying its transfer penalty.
Can a Grindstone reset an item's Prior Work Penalty?
Yes! Removing all non-curse enchantments on a Grindstone completely resets the item's RepairCost back to 0. However, all existing enchantments on the item are lost.
Does renaming an item prevent the Prior Work Penalty from increasing?
In older Minecraft versions (before Java 1.8), renaming locked the penalty. In modern Minecraft (Java & Bedrock 1.21+), renaming does NOT stop the Prior Work Penalty from doubling.