
简介
通过这个模组,我展示了我对挖掘机/采石场的实现。该模组专为融合两个世界而构建:既要尽可能酷炫有趣,又要兼顾性能,确保运行多个实例时游戏不会卡顿。
最终成果便是这个模组,数百台挖掘机可以同时并行运作,且(在我看来)外观惊艳无比。此外,它还配备了一套升级系统,允许你升级每一台挖掘机,并提供极高的可配置性,无论是用于你自己的游戏还是整合包都非常合适。
宣传视频
为了更好地直观展示模组的功能,我制作了一段简短的宣传视频,展示了其主要特性:
作为视频的补充说明,所有画面均在我的电脑上录制,配置为 NVIDIA RTX 2080 Ti 显卡和 Intel Core i9-9900 K 处理器,因此我预计在新电脑上会有更好的性能表现。此外,渲染距离和模拟距离均设置为 32 区块。
特性
- 激光挖掘机:在完成首次扩展挖掘任务后可制作
- 可通过多种、通常分多层的升级组件进行升级

- 使用两个配置文件实现深度自定义
- 优化以支持数百个实例并行工作,阵列每分钟可挖掘超过 150 万方块
- 可作为独立模组使用,也可与其他科技/自动化模组组合使用
灵感来源
这可能是大家早已预料到的内容。我还记得小时候玩 BuildCraft 的采石场时觉得非常酷。不过,这个模组最初的目标并不是要复刻那个采石场。它诞生于我正在制作的一个整合包中,当时我希望玩家有一种在沙漠中挖掘大型结构的方式。于是,挖掘机就此诞生。随后我认为把它做成一个独立的模组也是个不错的选择。尽管如此,我还是要提一下 BuildCraft 及其采石场,因为那是我美好的回忆 :)。
(并非)常见问题
由于模组尚新,目前还没有常见的问答,但我预想可能会有以下问题:
我可以将你的模组用于我的整合包吗?
- 当然可以!如果你想,也可以发消息告诉我整合包的信息,让我看看。
我遇到了问题/发现了 bug,该怎么办?
- 最好在 GitHub 上提交 Issue 并解释具体情况,但直接发消息给我也是可以的。
你使用了哪些工具?
- 编码使用的是 IntelliJ IDEA(社区版),精灵图/纹理使用的是 Aseprite,宣传视频使用的是 DaVinci Resolve 和 OBS Studio,代码描述使用的是 Word 和 draw.io,标题“图片”使用的是 Photopea(即本帖顶部的图片)。
你计划将该模组移植到其他 Minecraft 版本或加载器吗?
- 其他 Minecraft 版本很有可能,但这取决于移植的难度,所以我推测越接近 1.21.1 的版本可能性越大。对于其他加载器(如旧版本的 Fabric 或 Forge),我不太确定,但也说不定。
代码
所有代码均在 GitHub 上公开(源代码)。我还写了一篇相当长的文章,描述了其背后的架构(特别是优化部分),希望能为其他可能想使用部分代码的人提供帮助。如果你愿意,可以自由复制部分代码用于你自己的项目,但如果这样做,希望你能提及我。另外,请不要全部复制。
已知问题
- 水可能会表现得“怪异”。默认情况下,被挖掘的方块不会更新邻居状态,这意味着水不会扩散且可以被移除。然而,如果水在被挖掘机内部列高之上更新并扩散,则在重新扫描前不会被移除。修复这个问题很困难,因为持续扫描整个体积并不现实。
- 有时方块没有被破坏。这是一个奇怪的问题,我在测试超大型阵列时遇到过几次。我怀疑这与区块加载有关,但我无法可靠地复现它。同样,重新扫描可以修复此问题。
- 传输物品的路径中断。这更奇怪了。我在测试约 1500 台挖掘机时的“极端”性能条件下见过两次。它会在一段时间后自行修复,看起来只是有点奇怪,但我无法可靠地复现它。
最后,祝每一位阅读此帖的朋友拥有美好的一天,希望你喜欢我所构建的内容! :)
Balto/FrozenPhoenix

Summary
With this mod I present my implementation of an excavator/quarry, which was specifically built to combine two worlds: Having it look as cool and interesting as possible while at the same time building it with performance in mind so that the game does not start to struggle once a few are running.
The result is this mod, where hundreds of excavators can run in parallel while looking (in my opinion) amazing. All of this is combined with an upgrade system allowing you to upgrade each excavator and very deep configurability for either your own game or a modpack you might create.
Trailer
To better visualize what the mod does, I created a short trailer for it, showcasing its features:
As a side note for the trailer, everything was captured on my PC which has a NVIDIA RTX 2080ti and an Intel Core i9-9900 K, so I expect even better performance on newer PCs. Also I used 32 chunks render and simulation distance.
Features
- Laser excavator craftable after the first extended mining trip
- Can be upgraded using one of several, often multi-tier, upgrades

- Allows deep customization using two config files
- Optimized to allow hundreds to work in parallel allowing arrays that excavate more than 1.5 million blocks per minute
- Can be used as a standalone mod or in combination with other tech/automation mods
Inspiration
Probably something everyone is already expecting. I still remember as a kid playing around with buildcrafts quarry and finding it very cool. That said, this mod had actually never the goal to be a recreation of that quarry. It came to be, as part of a modpack I am working on, where I wanted a way for the player to excavate large structures in a desert. And so the excavator was born. Then I thought it would also be a great standalone mod. However, I still want to mention buildcraft and its quarry as a very good memory of mine :).
(Not really) Frequently Asked Questions
As the mod is new there are no currently frequently asked question but I could imagine these coming up:
Can I use your mod in my modpack?
- Absolutely! If you want you can also send me a message with the modpack to take a look
I have a problem/encountered a bug, what can I do?
- At best you can open an issue on github explaining what happened but it is also fine if you just send me a message
What tools did you use?
- For coding I used IntelliJ IDEA (Community Edition), for the sprites/textures Aseprite, for the trailer DaVinci Resolve and OBS Studio, for the code description Word and draw.io and for the title "image" Photopea (the image on top of this post).
Do you plan to port the mod to other Minecraft versions or modloader?
- Minecraft Version very likely, however depends a bit on how easy it is, so I assume the closer to 1.21.1 the more likely. For other modloaders (so Fabric or Forge for older versions) I am no so sure but maybe.
Code
All code is public on my GitHub (Source Code). I have also written a quite long description of the architecture behind it (especially the optimizations) which is hopefully helpful for others who might want to use parts of the code. If you want feel free to copy parts of the code for your own projects but if you do it would be nice if you could reference me. Also please don't copy all of it.
Known Issues
- Water can act "weird". By default the excavated blocks don't update neighbors, which means water will not spread and can be removed. However if it updates and spreads above the excavator internal height of a column then it will not be removed until a rescan. Fixing this is hard as scanning the whole volume constantly is not really an option.
- Sometimes blocks are not broken. This is a weird one, I have encountered it a few times during testing very large arrays. I assume it has something to do with chunk loading but I cannot reproduce it reliably. Again a rescan fixes this.
- Transported items path is broken. This is an even weirder one. I have seen it maybe twice under "extreme" performance conditions when testing around 1500 excavators. It fixes itself after some time and only looks weird but I cannot reliably reproduce it.
And with that I wish everyone reading this has an amazing day and I hope you enjoy what I have built! :)
Balto/FrozenPhoenix
评论 0
登录后参与评分
还没有评论,来抢沙发吧