Anvil Enchantment Optimizer
Pick a base item and your target enchantments — get the exact combine order that minimizes total XP and never hits Too Expensive.
Base item
Desired enchantments
? How this is calculated
Every anvil pass adds a prior-work penalty of 2^n − 1 levels (n = times
that item has been on an anvil before), charged on both sides of every combine. Moving an
enchantment costs its level × a rarity multiplier (1 for common/uncommon, 2 for rare, 4
for very rare, from a book). The optimizer searches every legal way to group and order your
books — including partial deliveries onto the tool along the way, not just one final merge —
and returns the sequence with the lowest total cost where no single step reaches 40 levels.
It assumes one freshly made book per enchantment; already-used books or items carry their own
prior work and will cost more than shown here.