Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
π¨ NYR Anvil Fix β No More "Too Expensive!"
Vanilla Minecraft refuses every anvil job that costs 40 levels or more, displaying the hated "Too Expensive!" message. Because every anvil use permanently raises an item's prior-work penalty (1, 3, 7, 15, 31, 63...), your best gear eventually becomes impossible to repair or enchant.
NYR Anvil Fix rescues those items, allowing every job through and capping the price at 39 levelsβthe highest level cost an anvil can display.
β‘ Built to "The Three Zeroes"
- 0 Configuration: No config files to edit. The plugin writes zero folders or junk data to your disk.
- 0 Dependencies: Pure, ultra-lightweight bytecode (6.4 KB). Nothing else to install and zero third-party libraries inside the JAR.
- 0 Commands or Permissions: No commands to learn and no permissions to set up. Players and staff never have to configure anything.
π οΈ How It Works (Technical Architecture)
Most naive anvil plugins attempt to listen only for PrepareAnvilEvent and lower the cost. That does not work in vanilla Minecraft. The game engine discards the result of any job costing 40+ levels before asking plugins about it, resulting in an empty output slot.
NYR Anvil Fix solves this architecturally:
- Lifts the Menu Ceiling: When a survival player opens an anvil (
InventoryOpenEvent), it raises the menu's internal threshold from 40 toInteger.MAX_VALUEso the engine never discards the result. - Clamps the Output Cost: When the result is priced (
PrepareAnvilEventonHIGH), any price above 39 levels is safely clamped to 39 before reaching the client. - Cross-Version Method Handles: Uses pre-resolved method handles to dynamically bridge
AnvilView(1.21+) andAnvilInventory(1.20.6), ensuring zero deprecated runtime failures.
π‘οΈ Battle-Tested Verification (187 Checks β’ 0 Failures)
Every build is verified across automated headless server environments driven by bot players:
- 187/187 Live Checks Passed across 11 real production server distributions with 0 errors or warnings.
- Verified Platforms: Paper (1.20.6, 1.21.1 through 1.21.11, 26.1.2, 26.2), Purpur 1.21.11, Folia 1.21.11, and Spigot 1.21.11.
- Vanilla Balance Kept: Combining rules, repair limits, renaming, and creative mode bypass remain 100% vanilla.
π¦ Installation
- Download
NYR-AnvilFix-1.0.0.jar. - Drop it into your server's
/pluginsdirectory. - Restart your server. That is the entire setup.
(Note: If you already own NYR Anvil Cap, you do not need this. This plugin automatically detects Anvil Cap and stands aside cleanly).
π Looking for VIP Perks & Exploit Protection?
Need per-rank anvil cost caps (e.g. VIPs repair for 20 levels), prior-work penalty resets, 2PC transactional escrow, or anti-dupe security?
Check out our complete enterprise systems suite on our official desk:
π Nyr's Workshop Discord: https://discord.gg/9ezz8XnJF


