以极低的代价自动在铁砧上附魔物品
[!WARNING]
该模组尚未完全开发完成。您可能会遇到不稳定性、崩溃或卡顿。
请自行承担风险!
欢迎随时报告遇到的任何问题,或在 GitHub 上为算法提出改进建议。
使用方法
- 打开铁砧
- 点击 Select 按钮;若要取消选择,请按 Cancel
- 首先选择目标物品(将被高亮显示为蓝色)
- 然后选择所有你想作为祭品的物品(将被高亮显示为绿色)
- 选择完毕后,按下 Calculate 按钮
- Auto Enchanter 将检查是否存在不兼容的附魔,并开始遍历所有可能性以应用这些附魔
- 即使你关闭了铁砧界面,计算仍会继续
- 若要停止,可以在铁砧界面内按 Cancel,或使用客户端命令
/autoenchanter cancel
- 请注意,计算过程非常消耗资源,速度取决于你的硬件配置
- 即使在性能不错的设备上,也仅能在 5 分钟内计算最多 14 个物品
- 当计算过程完成后,Auto Enchanter 会通知你
- 如果你仍在铁砧界面,你会在那里看到提示信息
- 否则,你会在聊天栏收到一条文字消息
- 重新打开铁砧后,你可以选择 Start enchanting 或 Cancel
- 自动附魔通过模拟槽位点击来实现,大多数服务器都允许此操作
- 如果你在附魔过程中铁砧被破坏,或者你自己关闭了铁砧界面,
只需重新打开一个铁砧并再次按下 Start enchanting 即可
- 它将从上次中断的地方继续
- 在进行每种组合之前,Auto Enchanter 会检查你是否拥有足够的经验等级,这意味着你不需要在附魔前就拥有所有所需的等级,可以在不同组合之间逐步获取
- 即使在附魔过程中中途取消,
重新选择所有已用和未用的书通常也能找到一种方法,以相同的价格获得期望的结果
 |
| Selecting items for enchanting |
 |
| Success message |
 |
| Calculation process with visualization |
 |
| Automatic enchanting |
Enchantment Combinations
如果你的选中物品包含不兼容的附魔,模组将根据目标物品上的附魔列表来决定保留哪一个。对于每一对不兼容的附魔,那些同时也应用于目标物品的附魔将被保留,而另一个则会被忽略。如果无法解决所有冲突,计算过程将不会启动,并会出现错误提示。
有时你无法直接使用满级卷轴进行附魔。要么是你还没有所需的卷轴,要么你是使用 Wind Burst 进行附魔,或者你正在玩 Villager Trades Re-Balance。
Auto Enchanter 会处理此类情况,并在计算所有订单时考虑卷轴等级,以确保达到最高可实现等级。
Auto Enchanter 还支持具有多个附魔的卷轴和物品,调整其计算算法以仅考虑有效的组合。这个过程有点脆弱,仍在测试中。当存在浪费或低效使用的书籍时,Auto Enchanter 通常在计算前就会抛出错误。然而,有时如果书籍的组合更为复杂,Auto Enchanter 会开始计算但找不到任何合适的附魔树。
Error Messages
Some items are incompatible or useless
发现了不兼容的附魔,且部分卷轴不包含有用的附魔
Enchantment <...> has wasted items
该附魔存在不同等级的卷轴和物品,但它们无法叠加至最大等级
Some items' every enchantment is ignored
将所有不兼容附魔加入忽略列表后,部分物品不再包含有用的附魔
Some items' every enchantment is wasted
在创建不同等级附魔的合并树之后,部分物品的所有附魔在附魔过程中都将被浪费
Couldn't find a tree
由于并非所有边缘情况都能在计算前消除,算法内部还有额外的检查来丢弃无效的附魔顺序;如果所有此类顺序均无效,则会出现此错误消息
TODO:
- check de-sync when "no trees" happens too quickly
- add config
- config: disregard wasted books
- config: >40 xp custom enchantments
- add progress command and time estimation
关于我
我是一名来自德国的计算机科学学生,同时在一家科技公司兼职。
除此之外,我喜欢在空闲时间与朋友相处、在线聊天或玩游戏。
如果你希望这个项目能够持续下去,觉得它对你有帮助,或者只是想支持并激励我继续前行,
你可以考虑进行小额☕ 捐赠。
Enchant items in the anvil automatically with minimal cost
[!WARNING]
The mod is still not fully developed. You may experience instability, crashes or lags.
Use at your own risk!
Feel free to report any encountered issues or suggest improvements for the algorithm on GitHub
Usage
- Open an anvil
- Click on the Select button; to cancel selection, press Cancel
- First select the target item (will be highlighted blue)
- Then select all the sacrifices you want to make (highlighted green)
- Once you selected everything, press the Calculate button
- Auto Enchanter will check for any incompatible enchantments and start to iterate all possibilities to apply the
enchantments
- Even if you close the anvil screen, the calculation will continue
- To stop, either press Cancel inside the anvil screen or use the client-side
command
/autoenchanter cancel
- Note, that the calculation uses a lot of resources and the speed depends on your hardware
- Even with a decent setup, only up to 14 items can be calculated in under 5 minutes
- When the calculation process is finished, Auto Enchanter will notify you
- If you are in the anvil screen, you will see the message written there
- Else, you will get a text message in the chat
- After opening the anvil again, you can choose between Start enchanting and Cancel
- Automatic enchanting works by simulating slot clicks, and most servers should allow this
- If your anvil breaks while enchanting, or you close the anvil screen yourself,
you can simply re-open an anvil and press Start enchanting again
- It will continue from where it left off
- Before each combination, Auto Enchanter will check if you have enough levels, meaning you don't have to have
all the levels before enchanting and can gradually receive them in between combinations
- Even if you canceled in middle of the enchanting process,
re-selecting all the used and unused books should be able to find a way to obtain the wished result for the same
price as before
 |
| Selecting items for enchanting |
 |
| Success message |
 |
| Calculation process with visualization |
 |
| Automatic enchanting |
Enchantment Combinations
If your selected items contain incompatible enchantments, the mod decides which to keep based on the list of
enchantments on the target item. For every pair of enchantments, that is incompatible, the enchantment which is also
applied to the target item, will be kept, while the other one will be ignored. If not all conflicts could have been
resolved, the calculation process is not started and an error will appear.
Sometimes you can't just enchant using max-level books. Either you don't yet have the required books,
you are enchanting with Wind Burst, or you are playing with the Villager Trades Re-Balance.
Auto Enchanter takes care of such scenarios, and considers the book levels when calculating all the orders,
to ensure that the highest achievable level is reached.
Auto Enchanter also supports books and items with multiple enchantments, adjusting its calculation algorithm
to consider only valid combinations. This process is a little fragile and is still being tested. When there are
wasted or inefficiently used books, Auto Enchanter should throw an error before calculating in most cases. However,
sometimes if the combination of the books is more complex, Auto Enchanter will begin calculating and won't find any
fitting enchantment trees.
Error Messages
Some items are incompatible or useless
Incompatible enchantments were found and some books contain no useful enchantments
Enchantment <...> has wasted items
This enchantment has books and items of different levels, and they don't add up to the max level
Some items' every enchantment is ignored
After adding all incompatible enchantments into the ignore list, some items have no useful enchantments anymore
Some items' every enchantment is wasted
After creating the merge tree of the different levels of an enchantment,
some items' every enchantment will be wasted in the enchanting process
Couldn't find a tree
Since not all edge cases can be eliminated before the calculation,
there are additional checks inside the algorithm to discard invalid enchanting orders;
if all such orders were invalid, this error message appears
TODO:
- check de-sync when "no trees" happens too quickly
- add config
- config: disregard wasted books
- config: >40 xp custom enchantments
- add progress command and time estimation
About Me
I am a computer science student in Germany and have a part-time job at a tech company.
Apart from that, I enjoy my free time by spending it with friends, chatting online or gaming.
If you want to keep this project alive, found it helpful or just want to support and motivate me to go on,
you could consider making a small ☕ donation.
评论 0
登录后参与评分
还没有评论,来抢沙发吧