附魔计算器
找到将附魔施加到物品上的最省钱方案。打开铁砧,选择你想要的附魔,该模组会显示结合附魔书的精确顺序,让你花费的经验等级最少,且永远不会遇到“过于昂贵!”的情况。
本模组深受 FanyaOff 创建的 Enchantment Calculator mod 的启发。感谢他们为原始概念和设计做出的所有贡献。

使用方法
- 将物品放入第一个铁砧槽位。 左侧面板列出所有适用于该物品的附魔。书本图标表示你已拥有该附魔书。
- 选择附魔。 单击以提高等级,右键单击以降低等级。Shift+单击可跳至最高等级,Shift+右键单击移除该附魔。我的书籍 会选择你拥有的所有附魔书,并取其最佳等级的等级(诅咒除外)。与你所选内容冲突的附魔会变灰。
- 遵循右侧的计划。 它会在你点击时更新。每一行代表一次铁砧操作:第一槽位放入的物品、第二槽位放入的附魔书以及所需的经验等级费用。悬停在某一行可查看详细信息。
- 执行步骤。 当前步骤所需的物品在你的物品栏中高亮显示,铁砧槽位会指示每个物品应放置的位置:蓝色用于第一槽位,橙色用于第二槽位。已完成的操作会打勾,下一个操作会自动高亮显示。
特性
- 真正的最低成本顺序。 对所有结合你的附魔书的方式进行精确搜索,而非使用经验法则,并且绝不会规划在生存模式下需要 40 级或更多费用的步骤。如果没有可行的顺序,它会明确告知。
- 使用你现有的书籍,包括包含多个附魔的书籍以及之前已经合并过的书籍(计算其先前工作惩罚)。
- 了解你的物品:物品上已有的附魔及其先前工作惩罚都包含在计划中。你也可以为附魔书制定计划,以便先将多本书籍合并为一本再应用。
- 支持模组和数据包添加的附魔,包含其真实费用和冲突信息。
- 创造模式没有“过于昂贵!”的限制,计划也会据此调整。
- 适应任何屏幕尺寸。 在窄屏或大型 GUI 缩放比例下,面板会变成单个选项卡式面板,铁砧则移至一侧。你可以隐藏面板,它们在被再次显示前会保持隐藏状态。
- 匹配你的资源包。 面板的颜色取自铁砧纹理,因此深色资源包对应深色面板。
- 记住你对每种物品类型的选择,这样下一把剑也会获得相同的计划。
- 仅客户端侧:可在任何服务器上运行。支持英语和荷兰语。


模式
计划上方的模式按钮更改计划最小化的目标:
- 最少经验等级(默认):总经验等级最少。
- 最少经验值:假设你为每个步骤单独收集经验等级,则总经验点数最少。由于低成本步骤相对消耗较少经验值,此模式可能会倾向于更多、更小的步骤。
- 最低惩罚:最终物品的先前工作惩罚最低,以便后续的修复和重命名保持低成本。
铁砧费用运作原理
每次使用铁砧的费用等于第二槽位中附魔书上的附魔费用,加上两个物品的先前工作惩罚。每当一个物品经过铁砧处理,其惩罚就会翻倍(加一)。因此,书籍的结合顺序至关重要,而生存模式的铁砧会拒绝任何费用达到 40 级或以上的操作。该模组会同时考虑这两点来制定计划。
支持的版本
Fabric,需安装 Fabric API。下载适合你 Minecraft 版本的文件:
| Minecraft | Minecraft | ||
|---|---|---|---|
| 26.3 | ✔ | 1.21.9 – 1.21.10 | ✔ |
| 26.2 | ✔ | 1.21.6 – 1.21.8 | ✔ |
| 26.1 – 26.1.2 | ✔ | 1.21.5 | ✔ |
| 1.21.11 | ✔ | 1.21.4 | ✔ |
| 1.21 – 1.21.3 | ✔ |
许可证
MIT
Enchant Calculator
Find the cheapest way to put enchantments on an item. Open an anvil, pick the enchantments you want, and the mod shows the exact order to combine your books, so you spend as few levels as possible and never hit "Too Expensive!".
This mod is heavily inspired by the Enchantment Calculator mod created by FanyaOff. All credit goes to them for the original concept and design.

How to use
- Put an item in the first anvil slot. A panel on the left lists every enchantment that fits it. A book icon means you already have that book.
- Pick enchantments. Click to raise the level, right-click to lower it. Shift-click jumps to the max level, Shift-right-click removes it. My books selects everything you have a book for, at the level of your best book (curses excepted). Enchantments that conflict with your choice are greyed out.
- Follow the plan on the right. It updates as you click. Each row is one anvil use: the item that goes in the first slot, the book that goes in the second, and the cost in levels. Hover a row for the details.
- Do the steps. The items for the current step light up in your inventory, and the anvil slots show where each one goes: blue for the first slot, orange for the second. Finished steps get a check mark and the next one is highlighted automatically.
Features
- Truly the cheapest order. An exact search over every way to combine your books, not a rule of thumb, and it never plans a step that costs 40 levels or more in survival. If no order fits, it tells you.
- Uses the books you have, including books with several enchantments and books that were combined before (their prior work penalty counts).
- Knows your item: enchantments already on it and its prior work penalty are part of the plan. You can also plan for an enchanted book, to combine books into one before applying them.
- Works with modded and datapack enchantments, with their real costs and conflicts.
- Creative mode has no "Too Expensive!" limit, and the plan knows it.
- Fits any screen. On narrow screens or large GUI scales the panels become one tabbed panel and the anvil moves aside. You can hide the panels, and they stay hidden until you show them again.
- Matches your resource pack. The panels take their colours from the anvil texture, so dark packs get dark panels.
- Remembers your choices for each item type, so the next sword gets the same plan.
- Client-side only: works on any server. English and Dutch.


Modes
The mode button above the plan changes what the plan minimises:
- Fewest levels (default): the fewest experience levels in total.
- Least XP: the fewest experience points, assuming you collect the levels for each step separately. Cheap steps cost relatively little XP, so this can prefer more, smaller steps.
- Lowest penalty: the lowest prior work penalty on the finished item, so later repairs and renames stay cheap.
How anvil costs work
Every anvil use costs the enchantments on the book in the second slot, plus a prior work penalty for both items. That penalty doubles (plus one) each time an item goes through an anvil. The order you combine books in therefore matters a lot, and a survival anvil refuses anything that costs 40 levels or more. The mod plans around both.
Supported versions
Fabric, with Fabric API. Download the file for your Minecraft version:
| Minecraft | Minecraft | ||
|---|---|---|---|
| 26.3 | ✔ | 1.21.9 – 1.21.10 | ✔ |
| 26.2 | ✔ | 1.21.6 – 1.21.8 | ✔ |
| 26.1 – 26.1.2 | ✔ | 1.21.5 | ✔ |
| 1.21.11 | ✔ | 1.21.4 | ✔ |
| 1.21 – 1.21.3 | ✔ |
License
MIT
下载 Enchant Calculator
下载 Enchant Calculator
下载 Enchant Calculator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enchant Calculator
下载 Enchant Calculator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enchant Calculator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enchant Calculator
下载 Enchant Calculator
下载 Enchant Calculator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enchant Calculator
完全重写:全新的计算器、全新的界面,并支持从 1.21 到 26.3 的所有 Minecraft 版本。
新增
- 支持 Minecraft 1.21–1.21.1、1.21.2–1.21.3、1.21.4、1.21.5、1.21.6–1.21.8、1.21.9–1.21.10、1.21.11、26.1–26.1.2、26.2 和 26.3(每个区间对应一个 jar 文件)。
- 选择附魔后计划会立即更新。不再需要“计算”按钮。
- 计划会使用你已有的附魔书,包括包含多个附魔的书以及之前合并过的书(会计算其先前的经验惩罚)。“我的书”选项会选择所有你有书的附魔,按你拥有的最佳书的等级计算,并排除诅咒。
- 当前步骤所需的物品会在你的物品栏中高亮显示,铁砧插槽也会指示每个物品的放置位置:蓝色代表第一个插槽,橙色代表第二个插槽。
- 进度追踪:已完成的步骤会显示勾选标记,下一步会自动高亮显示。
- 完整的步骤列表,包含物品图标、每步的成本,以及带有所有详细信息的工具提示。
- 为将多本书合并为一本再应用的附魔书生成计划。
- 考虑物品上已有的附魔及其先前的经验惩罚。
- 在创造模式下没有“过于昂贵!”的限制,计划也会据此调整。
- 紧凑布局,适用于小窗口和大 GUI 缩放比例;铁砧会移开以腾出空间。
- 面板可以隐藏,并且在你再次显示它们之前保持隐藏状态。
- 你的选择会按物品类型连同模式一起保存在
config/enchantcalc.json中。 - 面板的颜色取自你的资源包,因此深色资源包会生成深色面板。
- 荷兰语翻译。
更改
- 计算器现在通过精确搜索找到最便宜的顺序,并且在生存模式中永远不会规划成本为 40 级或以上的步骤。如果没有合适的顺序,它会告知你。
- “工作”模式现在是“最低惩罚”:它使成品的前置经验惩罚尽可能低。
- 附魔成本直接从游戏中读取,因此模组和数据包附魔的成本按其实际成本计算。
修复
- 在规划八个或更多附魔时游戏会卡住,有时持续数分钟。
- 在搜索框中输入“e”会关闭铁砧,数字键会移动物品。
- 模组附魔都被视为每级消耗 1 点经验值。
- 离开并重新加入世界后,物品栏中的书不再被识别,且上一个服务器的附魔会显示在当前服务器上。
- 为一个物品选择的附魔会错误地应用到另一个无法拥有这些附魔的物品上。
- 计划忽略了物品现有的前置经验惩罚和附魔。
- 点击附魔列表上方或下方会更改一个已滚动出视图的条目。
- 当 GUI 缩放设置为“自动”时,面板可能会出现在屏幕外。
- 手持物品时点击空白的面板区域可能会导致物品被移出物品栏。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧