Deep DiveAnvilCalc

Planning the cheapest anvil order from the books and items you already own

Most anvil calculators answer one question: what is the cheapest way to build this item if every book can be had at will? In a real world that is rarely true. You have a fished Efficiency V book in a chest, a librarian who sells Unbreaking III, and no Mending book at all. AnvilCalc can now plan around that. You tell it what you own, and it builds the combine order from those pieces, buying or assuming only what is missing.

The AnvilCalc inventory page for an inventory called Survival world, listing a pickaxe, three enchanted books and an Available from villagers section

Named inventories

An inventory is a list of the books and items you actually have. You can keep as many as you like, for example one per world or server. Each has a name, an icon from a set of about twenty and a colour so that they are easy to tell apart, and its own edition (Java or Bedrock) and version. The version can be set to “Latest”, which always follows the newest version AnvilCalc supports for that edition.

Everything is stored in your own browser. There is no account and nothing is sent to a server.

On the inventory page you add a book or an item, tap its enchantments to set the levels, and note where it came from and whether it has been through an anvil before. Two settings matter for planning:

  • Quantity. A stack of three identical books is one entry with a quantity of 3, not three entries.
  • Available on demand. A standing villager trade is marked as always available instead of being given a number. There is also a separate “Available from villagers” list of single-enchantment books you can buy again at will.

An item you already own, such as a pickaxe with Efficiency III, can be sent back to the calculator with its enchantments and anvil use count filled in, so you only pick what to add on top.

Don’t use, May use, Only use

The calculator has an Inventory usage control with three options:

  • Don’t use ignores the inventory and assumes every book is obtainable. It is useful for a plan you want to share that should not depend on what you own.
  • May use takes pieces from your inventory when that makes the plan cheaper and assumes anything missing can be obtained.
  • Only use considers only what is in the inventory. It can still combine lower levels into higher ones, for instance two Sharpness IV books into a Sharpness V, but it never assumes a book from outside.

Until the active inventory holds something relevant to the item you picked, the control starts on Don’t use, then moves to May use. Tapping an option yourself overrides that, and Only use is always your own choice.

When the inventory is not enough

Under Only use, a request can be impossible with what you own. Instead of a bare error, AnvilCalc now shows the cheapest plan that would work if the missing books could be obtained, and marks each step that cannot be done as is.

An AnvilCalc plan for a diamond pickaxe marked as blocked, with step 1 flagged as not found in the inventory: Mending I book

In the example, the pickaxe needs Efficiency V, Unbreaking III and Mending, and the inventory has no Mending book. The summary says the plan cannot be completed as is, the total is labelled hypothetical, and step 1 carries a banner naming the missing book. A step can also be blocked because it would cost more than the per-step level limit (39 levels). Blocked steps cannot be marked done. Requests that can never work, such as conflicting enchantments, keep a plain error message.

Emerald cost for villager books

Plans show an emerald cost next to the XP cost on the step that buys a book. A book you own outright is free. A villager trade is a repeatable purchase, so every book a plan buys from one still costs emeralds, even under Only use.

The figures are estimates: each is the middle of the range a librarian can charge for that enchantment and level, capped at 64. In the guide’s table, Sharpness V is 44 emeralds at the normal price. Each villager entry has a Cured toggle. Curing a zombie villager gives a permanent discount on that villager’s trades, so cheap books become almost free while an expensive level V book stays costly. The exact discount is a modelled approximation: real in-game prices can differ by a few emeralds. Hero of the Village, demand and gossip also move real prices, and AnvilCalc does not model them. The emerald cost guide lists the full table and explains the limits.

Saving plans

A plan can be saved into an inventory with the Save plan button next to Share. A saved plan keeps your progress as you tick off steps, in the calculator or on its own plan page, and you can reopen it later. Opening a plan link never saves anything by itself, and saving works for blocked plans too.

Moving an inventory elsewhere

An inventory can be exported to a .json file and imported on another device or browser; the file includes saved plans. A separate share link carries the inventory’s name and contents, but not its icon, colour or saved plans, and the person who opens it can save it as a new inventory of their own, with a number added if the name already exists. The guide to using your inventory covers all of this in more detail, and plan links remain a separate mechanism that never exposes what you own.

In short

The calculator still works without any of this: pick an item and enchantments, and read the steps. An inventory just lets the same arithmetic start from your chests instead of an empty world.