Keeping up with Minecraft updates: Bedrock data patches and an automatic version watcher
An anvil calculator is only as good as its data: which enchantments exist, their maximum levels, which items take them and what each one costs. Both editions of the game keep changing that data, so AnvilCalc has to keep up with it. This post describes how that works today, including the parts that are done by hand.

What the calculator ships
AnvilCalc holds one dataset per game version. Today that is Java 1.21.11, 26.1 and 26.3, and Bedrock 1.19.1 and 26.52. The calculator’s edition and version selector is generated from that list, and so is the validation in the MCP server, so adding a version means adding data; nothing else in the app needs to know about it.

Where the data comes from, and why it lags
Most of it is generated from the open-source minecraft-data project. That works well for Java. For Bedrock it hits a wall: the package lists newer Bedrock versions, but past 1.19.1 they contain only protocol information, with no enchantment or item tables. So 1.19.1 is the newest Bedrock version with complete upstream data, and nothing newer can be generated.
The Java and Bedrock 26.x entries are therefore different in kind. Java 26.3 is a copy of the 26.1 data under a new label, and Bedrock 26.52 is a copy of 1.19.1 under a new label (it was first 26.51, renamed after 26.52 turned out to be a pure bugfix hotfix with no enchantment or item changes). Each copied file says so in its header comment. The reasoning is that the release notes for those versions describe no enchantment or anvil-mechanic changes, but the Bedrock copy spans years of updates, so it is treated as a starting point rather than a verified dataset.
Patching Bedrock by hand from the wiki
Instead of waiting for upstream, the project checks the Minecraft Wiki directly and patches the data where it finds a difference. Each patch is marked in the file as hand-added and dated.
- Mace (21 September). Bedrock 1.19.1 predates the mace and its Breach, Density and Wind Burst enchantments, so they were added by hand.
- Spear, Lunge and Copper (23 October). Bedrock 26.52 had none of the spears, the Lunge enchantment or the copper tools and armor. They were added using the Bedrock figures from the wiki, not by copying Java’s: Bedrock durabilities are one point higher than Java’s (for example 60 for a wooden spear and 2032 for a netherite one), Lunge has a maximum level of III and conflicts with nothing, and Sweeping Edge is Java-only, so a Bedrock spear does not take it. A guide to Lunge covers how the enchantment itself behaves.
Hand-added blocks have a known cost: regenerating Bedrock data would erase them, so the notes say to re-apply them or replace them with generated data.
Checking who can take which enchantment
Also on 23 October, the item-to-enchantment mapping was audited against the wiki’s “Summary of enchantments by item” table, because the upstream categories are coarser than what the anvil accepts. The audit found gaps in both editions:
- On Java, the mace had lost Smite, Bane of Arthropods and Fire Aspect after an earlier edit misread the wiki’s “Bedrock only” mark, which refers to the enchanting table and not the anvil. They were restored.
- On Bedrock, helmets, leggings and boots were missing Thorns, axes were missing Sharpness, Smite and Bane of Arthropods, and shears were missing Efficiency and Silk Touch.
The Bedrock corrections live in a patch file that the data generator applies, so they survive regeneration. A table-driven test now checks every item in every shipped dataset against the audited groups and fails if one does not fit. The wiki is the only source for this; none of it was verified in game.
An automatic version watcher
Hand patching only works if someone notices a new version. A scheduled GitHub Actions workflow now does the noticing. It runs once a week, on Mondays, and can also be started by hand. It looks at two sources:
- Java: Mojang’s official version manifest, counting only releases (snapshots and release candidates are ignored).
- Bedrock: the wiki’s Bedrock Edition version history, read through the wiki’s API. It was chosen because its version names are the same numbers AnvilCalc uses, such as 26.52. A version that is only in preview does not count as released, and the script fails loudly if it parses no releases at all, which would mean the page layout changed.
A version is “new” only if it is higher than the newest one AnvilCalc ships for that edition, so older versions that were skipped never create noise. For each new version the workflow opens one issue in our tracker, with a hidden marker so the same version is never reported twice, even after the issue is closed. It never changes any files, so it cannot trigger a deploy by itself. If one source is down, the other is still processed.
The issue starts a checklist: generate or patch the data, add any new item types to the calculator’s item list, compare the new data with the old, check whether the anvil’s own rules changed, and run the tests.
What this does not do
The watcher says that a version exists; it does not say what changed in it. Reading the release notes and the wiki and patching the data is still manual, and Bedrock data stays only as good as those checks. If something in the calculator disagrees with your game, the difference between Java and Bedrock anvil costs is the first thing to rule out, and then the version selector on AnvilCalc is the place to confirm which dataset you are looking at.
