附魔计算器模组
无需退出游戏,即可找出任意物品和附魔组合下最便宜的铁砧操作顺序。将物品保存至列表,打开 HUD,然后在铁砧处按步骤操作。
附魔计算器是一个客户端模组,旨在解决玩家“我应该以何种顺序合并这些书?”的问题。
通过按键绑定打开它,选择你的物品和附魔,并在触碰任何一本附魔书之前,获得包含经验消耗在内的精确分步计划。将其保存至列表,开启 HUD 选项,在铁砧处为你的物品进行附魔,全程无需关闭游戏。
数据按世界持久化存储。这意味着你可以为不同的世界保存不同的附魔列表,各世界之间互不干扰。
使用方法
- 按下 J(可在控制设置中重新绑定)以打开附魔计算器界面。
- 从分类器和物品选择器中选择你的 物品类型。
- 切换你想要获得的 附魔,并为每个附魔设置正确的等级。
- 点击 计算。
- 在结果面板中查看分步的铁砧操作顺序,或按 HUD:开/关 将步骤固定在屏幕上。
- 在铁砧处按照步骤操作。完成。

斜杠命令
/enchantcalc - 直接打开计算器界面,无需按键绑定。
/enchantcalc hud - 列出当前 HUD 位置及所有放置选项。
/enchantcalc hud top_left, top_right, center_left, center_right, bottom_left, bottom_right - 将 HUD 移动到你想要的位置。
/enchantcalc hud off - 关闭 HUD。
算法原理
附魔计算器的优化器是为本模组从零开始构建的。每个选定的附魔都表示为一个整数的一个位,动态规划搜索会考虑将该集合拆分为两个可合并组的所有可能方式——这是穷举搜索,而非贪婪捷径——并在此过程中跟踪每次铁砧前置工作深度下的最佳结果。最终得出数学上最优的合并顺序,无论是针对最小经验等级还是最小前置工作惩罚。
游戏内界面也是为本模组从零开始构建的——没有共享 UI 框架或外部资源——包括使用游戏自身物品渲染器的实时物品选择器、按世界和玩家分别保持计算分离的持久化保存系统、可选的 HUD 覆盖层,以及针对常见附魔配置的精选“快速构建”预设。
功能特性
- 最优铁砧顺序 - 使用穷举搜索算法评估所有可能的合并序列,并返回总经验消耗最低的那一个。非近似值。
- 分步结果 - 清晰列出每次铁砧操作:左物品 + 右物品 > 输出,并在每一步显示等级成本和前置工作惩罚。
- 总成本摘要 - 提前查看完整的等级和经验成本,让你确切知道需要刷取多少等级。
- 两种优化模式 - 最小化花费的总经验,或最小化最大前置工作惩罚(当你希望保持物品可修复时非常有用)。
- 游戏内 HUD 覆盖层 - 像 Litematica 的材料列表一样,将你的附魔计划固定在屏幕上。通过 HUD 按钮切换其开/关状态,以便你在铁砧旁工作时参考步骤。
- 已保存的计算 - 保存任何结果以供日后使用。适合在一次会话中规划多个物品的情况。
- 复制到剪贴板 - 一键复制完整步骤列表为纯文本。
- 仅客户端 - 无需安装服务端组件。适用于任何服务器。
兼容性
可与任何其他客户端模组共存。不修改任何游戏机制、网络流量或服务端状态。
由 ChapmanOfficial 制作
Enchantment Calculator Mod
Find the cheapest anvil order for any item and enchantment set - without leaving the game. Save items to a list, Open the hud, and follow the steps at the Anvil.
Enchantment Calculator is a client-side mod that solves the "what order do I combine these books?" problem for players.
Open it with a keybind, choose your item and enchantments, and get a precise step-by-step plan with XP costs before you touch a single book. Save it to a list, open a hud option and Enchant your items at the anvil, all while never closing the game.
It is persistent per world. Meaning, you can save different enchantment lists, for different worlds, no crossover.
How to Use
- Press J (rebindable in Controls) to open the Enchant Calculator screen.
- Select your item type from the category and item pickers.
- Toggle the enchantments you want and set each to the correct level.
- Click Calculate.
- Read the step-by-step anvil order in the results panel, or press HUD: Off/On to pin the steps to your screen.
- Follow the steps at the anvil. Done.

Slash commands
/enchantcalc - opens the calculator screen directly, no keybind required.
/enchantcalc hud - lists the current HUD position and all placement choices.
/enchantcalc hud top_left, top_right, center_left, center_right, bottom_left, bottom_right - moves the HUD to your desired location.
/enchantcalc hud off - turns the HUD off.
The Algorithm
Enchant Calculator's optimizer was built from scratch for this mod. Each selected enchantment is represented as a bit in an integer, and a dynamic-programming search considers every way to split that set into two combinable groups - exhaustively, not a greedy shortcut - tracking the best result at each anvil prior-work depth along the way. The result is the mathematically optimal combining order, for either minimum XP levels or minimum prior-work penalty.
The in-game interface is also built entirely from scratch for this mod - no shared UI framework or external assets - and includes a real-time item picker using the game's own item renderer, a persistent save system that keeps calculations separate per world and player, an optional HUD overlay, and curated "quick build" presets for common enchantment loadouts.
Features
- Optimal anvil order - uses an exhaustive search algorithm that evaluates every possible combining sequence and returns the one with the lowest total XP cost. Not an approximation.
- Step-by-step results - each anvil operation is listed clearly: left item + right item > output, with the level cost and prior-work penalty shown per step.
- Total cost summary - see the full level and XP cost upfront so you know exactly how many levels to farm.
- Two optimize modes - minimize total XP spent, or minimize the maximum prior-work penalty (useful when you want to keep the item repairable).
- In-game HUD overlay - pin your enchanting plan to the screen like a Litematica materials list. Toggle it on/off with the HUD button so you can reference the steps while working at the anvil.
- Saved calculations - save any result for later. Useful when planning multiple items in one session.
- Copy to clipboard - copy the full step list as plain text with one click.
- Client-side only - no server-side installation required. Works on any server.
Compatibility
Works alongside any other client mod. Does not modify any game mechanics, network traffic, or server-side state.
Made by ChapmanOfficial
评论 0
登录后参与评分
还没有评论,来抢沙发吧