1.21+ Tricky Trials & Mace

Anvil Enchantment Order Calculator & Optimizer

Calculates the cheapest step-by-step anvil combining tree to minimize XP levels, avoid "Too Expensive!", and create maxed 1.21 God Gear.

✨
⚙️ Slot #4 · Anvil & Prior Work Penalty Optimizer
2ⁿ - 1 Prior Work Penalty Engine · 1.21 Tricky Trials
🛡️ Choose Item to Enchant Weapons, armor, and tools (including 1.21 Tricky Trials Mace)
⚖️ Prior Anvil Uses / Repair Cost Penalty Select if this item was already worked on an anvil previously
📖 Select Desired Enchantments
Conflicting enchantments are automatically detected and disabled

Optimal Step-by-Step Combining Recipe

Follow this exact order on your anvil to stay well below the 39-level "Too Expensive!" limit

Total XP Levels
0 Levels
Total Raw XP Points
0 XP
Highest Single Step
0 / 39
Survival Safe Check
⚒️ Live Anvil Slot Preview
Target Slot 1
-
+
Sacrifice Slot 2
-
➔
Result
-
Enchantment Cost: -
Quick Summary & Key Takeaways
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:

Prior Work Penalty Exponential 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:

  1. Item + Book 1 (Penalty: 0) = Output has Penalty 1
  2. Item + Book 2 (Penalty: 1) = Output has Penalty 3
  3. Item + Book 3 (Penalty: 3) = Output has Penalty 7
  4. Item + Book 4 (Penalty: 7) = Output has Penalty 15
  5. Item + Book 5 (Penalty: 15) = Output has Penalty 31
  6. 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 B into Combined Book AB (Penalty = 1).
  • Combine Book C + Book D into Combined Book CD (Penalty = 1).
  • Combine Book AB + Book CD into 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.