# Why does the anvil say Too Expensive in Minecraft?

- Series: [How It Spawns](https://miu.fm/howitspawns.md)
- Published: 2026-11-16
- Page: https://miu.fm/howitspawns/why-does-the-anvil-say-too-expensive-in-minecraft

## Story

Why does the anvil say Too Expensive in Minecraft?

Because every item remembers its trips to the anvil. In Minecraft, Java Edition, each item carries a hidden charge (the game calls it repair_cost). A trip's price is both items' charges plus the books' own cost, and every trip sets the result's charge to the larger of the two, doubled, plus one: 1, 3, 7, 15, 31, 63. At 40 levels or more the anvil refuses, in survival.

Seven books onto a fresh sword one at a time cost 5, 4, 9, 13, 19 and 33 levels. Then Mending, worth two levels on its own, lands on a charge of 63: 65, Too Expensive. Merge the same books with each other first, in pairs, then the pairs together, and the last trip onto the sword costs 35. The sword comes out with a charge of 15, not 63.

The 40-level limit is as old as the anvil (1.4.2, 2012, when each trip added two). The doubling arrived in snapshot 14w04a in January 2014 and shipped in 1.8. Renaming alone never costs more than 39, so even a maxed-out item still takes a new name.

The prices, charges and the 40 limit are Java Edition 26.3's code. The smithy, the anvil, the books and the panel are our own simplified version, drawn in code, and the 68 levels in your bar are ours.

So, what's on your best sword?

Sources: Minecraft Java Edition, the game's code in Mojang's release 26.3 (the anvil menu's price and repair cost, the enchantments' anvil costs), and in Mojang's 1.4.2, 1.7.10, 14w03b, 14w04a and 1.8 releases; Mojang's snapshot posts for 12w41a (October 2012) and 14w04a (January 2014).
Not an official Minecraft video. Not approved by or associated with Mojang or Microsoft.
Sounds and music: our own, made in code.

## Watch

- Instagram: https://www.instagram.com/reel/Dfy8Vq4DNFi/
- TikTok: https://www.tiktok.com/@howitspawns/video/7708686273937968416
- YouTube: https://www.youtube.com/shorts/7AZbIc-WIIo

---

Under copyright law, a quotation must name its source: Miuradio, https://miu.fm/howitspawns/why-does-the-anvil-say-too-expensive-in-minecraft

© 2026 Miuradio, https://miuradio.com
