โก Enchanting Optimizer
Plan the enchantments for any number of items, get the cheapest anvil order, and a shopping list of books with villager prices from your trading hall.
๐งฐ How this works
The anvil's prior work penalty (PWP) starts at 0 and jumps to 1, 3, 7, 15, 31โฆ with each use. Combining two items costs the sum of their PWPs, and the result takes 2 ร max + 1. To minimize the total XP, books are combined in pairs from lowest penalty first (a Huffman-style merge).
The shopping list cross-references your Trading Hall (saved in your browser) to show which librarian sells each book and at what emerald price. Emerald totals use the cheapest available villager; books not in your hall are flagged.
Enchantment costs are order-independent and not included in the XP figure โ only the prior-work-penalty portion is minimized here.