? NYR Anvil Fix — 告别“太贵了!”
原版 Minecraft 会拒绝所有需要 40 级或更高经验等级的铁砧操作,并显示令人讨厌的**“太贵了!”**提示。由于每次使用铁砧都会永久增加物品的先前工作惩罚(1, 3, 7, 15, 31, 63...),你的顶级装备最终将无法修复或附魔。
NYR Anvil Fix 拯救这些物品,允许所有操作通过,并将价格上限固定在 39 级——这是铁砧能显示的最高等级成本。
⚡ 为“三个零”理念打造
- 0 配置: 无需编辑配置文件。该插件不会在您的磁盘上写入任何文件夹或垃圾数据。
- 0 依赖项: 纯净、超轻量级字节码(6.4 KB)。无需安装其他内容,JAR 包内无任何第三方库。
- 0 命令或权限: 无需学习命令,也无需设置权限。玩家和工作人员永远不需要进行任何配置。
?️ 工作原理(技术架构)
大多数粗浅的铁砧插件仅尝试监听 PrepareAnvilEvent 并降低费用。这在原版 Minecraft 中是行不通的。 游戏引擎会在询问插件之前,直接丢弃任何成本为 40+ 级的操作结果,导致输出槽为空。
NYR Anvil Fix 从架构上解决了这个问题:
- 提升菜单上限: 当生存模式玩家打开铁砧时(
InventoryOpenEvent),它将菜单的内部阈值从 40 提升至 Integer.MAX_VALUE,这样引擎就不会丢弃结果。
- 钳制输出成本: 当结果定价时(
PrepareAnvilEvent 触发于 HIGH),任何高于 39 级的价格都会在到达客户端之前被安全地钳制为 39。
- 跨版本方法句柄处理: 使用预解析的方法句柄动态桥接
AnvilView(1.21+)和 AnvilInventory(1.20.6),确保零废弃运行时故障。
?️ 经过实战验证(187 项检查 • 0 次失败)
每个构建版本都在由机器人玩家驱动的自动化无头服务器环境中进行验证:
- 187/187 实时检查通过,涵盖 11 个真实的生产服务器发行版,零错误或警告。
- 已验证平台: Paper (1.20.6, 1.21.1 至 1.21.11, 26.1.2, 26.2), Purpur 1.21.11, Folia 1.21.11 以及 Spigot 1.21.11。
- 保持原版平衡: 合成规则、修复限制、重命名以及创造模式绕过等功能均保持 100% 原版机制。
? 安装指南
- 下载
NYR-AnvilFix-1.0.0.jar。
- 将其放入服务器的
/plugins 目录中。
- 重启服务器。这就是全部设置步骤。
(注意:如果您已经拥有 NYR Anvil Cap,则不需要此插件。本插件会自动检测 Anvil Cap 并优雅地退让)
? 寻找 VIP 特权与反作弊保护?
需要按等级划分铁砧成本上限(例如 VIP 玩家只需 20 级即可修复)、先前工作惩罚重置、2PC 事务托管或防重复道具安全功能吗?
查看我们官方页面上的完整企业系统套件:
? Nyr's Workshop Discord:
? 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 to Integer.MAX_VALUE so the engine never discards the result.
- Clamps the Output Cost: When the result is priced (
PrepareAnvilEvent on HIGH), 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+) and AnvilInventory (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
/plugins directory.
- 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:
评论 0
登录后参与评分
还没有评论,来抢沙发吧