VanillaStyle
AutoCrafting
(VSAC)
我对 Minecraft 原版风格自动合成器的一种实现方案
模组信息:
信息:
模组作者:mosselini1
灵感来源于 Mumbo Jumbo(YouTube)。
代码基础部分使用 MCreator 制作,随后我通过标准 Java 编码进行了优化。
本模组基于 Forge 开发,托管于 Modrinth。
我想寻求新的挑战,出于乐趣和经验积累的目的,隐约记得他在某个 YouTube 视频中提到过这个概念。
于是我开始编写代码,后来找到了那个视频,发现 QuickCarpet (QC) 模组中已经实现了类似功能。
不过由于实现方式不同,它仍然具有参考价值。
对比说明:
在 QC 中,你需要将物品放入合成器,并通过解锁下方的漏斗来抽取结果以进行合成。
在这里,你插入物品并向方块发送脉冲信号即可触发合成,之后可以在需要时抽取结果。
在我的版本中,我能够设计出一台完全自动化的合成机器,可以完成工作台能做的所有合成(见免责声明)。
而在 QC 中,它似乎依赖于 Carpet 模组提供的可移动实体块(tile entities)。
虽然可移动实体块可能非常棒,但我的机器并不需要它。
不过,这确实可以简化和加快合成过程。
免责声明:
此版本不支持既非形状化也非无形状化的配方(理论上不存在,但在 Minecraft 实践中确实存在)。
我必须重新编写配方解析器,因为我没找到如何使用常规解析器的方法(在 1.19 代码中我没找到相关途径)。
如果我能找到它,那么工作台的所有合成都将成为可能。
这是我的第一个模组,希望一切运行良好,但由于缺乏经验,可能会存在问题。
如有需要,你可以通过邮件联系(mosselini1@hotmail.com),我会在有时间时进行检查。
我将此模组视为一种概念验证,我认为它作为原版特性是可行的:它并不过于强大,因为你需要设计一台相对复杂的机器来挖掘并发挥其全部潜力,且我将其锁定在后期的下界合金材质,使其成为终局物品。
虽然它不会是最高效的红石组件,但这可能会催生更多疯狂的设计,超越自动农场和巨型存储设施(例如 EthosLab 的 Nexus),迈向自动化工厂。
再加上代码本身完全基于原版且易于实现,这使得它更加出色。
虽然主机器略显复杂,但在某些情况下存在显著的简化方案:例如“仅单一元素类型”和“仅单一元素”,...
这意味着,例如资源压缩与解压(如铁锭与铁块之间的转换)变得简单,有助于缓解这些繁琐任务。
该机器本身远未优化,我保持原样是为了更具教学性和易懂性。我已经可以轻松地将代码紧凑化,我相信红石专家可以做得更精简。
数据:
所有信息均可在 vsac 的 Modrinth 页面上找到。
我为本模组创建了一个 GitHub 仓库(链接在 vsac Modrinth 页面),你可以在其中找到包括模组源代码、包含合成机地图、解释机器结构的图表等在内的内容。
许可证:
你可以自由使用我在 vsac Modrinth 页面上提供的所有内容,
但如果以任何方式使用,请注明出处并提供指向本页面的链接。
VanillaStyle
AutoCrafting
(VSAC)
My take on an implementation of an autocrafter in a vanilla minecraft style
Mod Info:
Info:
Mod creator : mosselini1
Based upon an idea of Mumbo Jumbo (Youtube).
The base of the code was made in MCreator, I then it refined it with standard java coding.
This mod was made on forge and is hosted on modrinth.
I wanted a new challenge, for the fun and experience, and remembered vaguely this concept mentioned by him in one of his Youtube videos.
I went on and coded it, i later found the video in question back and realized it had already been done in the QuickCarpet (QC) mod.
Since the implementation is different however, it can still be interesting.
In comparison:
In QC you put items in the crafter and suck the result out when you want to craft by unlocking a hopper beneath.
Here you insert the items and send a pulse to the block to craft, you can suck the result out when you wish.
With my version I was able to design a fully automated crafting machine, that could make all the crafts (see disclaimer) that a normal crafting bench can do.
In QC it seemed to rely on movable tile entities provided by the Carpet mod.
While movable tile entities could be awesome, my machine doesn't require it.
It would however certainly simplify and speed up the crafting process.
Disclaimer:
This version doesn't allow for recipes that are nor Shaped neither Shapeless (In theory this can not be but in practice this exist in minecraft).
I had to re-code the recipe parser myself since I didn’t saw how to use the regular one (I dind't find a way for it for in the 1.19 code).
Would I be able to find it then indeed all crafts from a crafting table would be possible.
This is my first mod, I hope that everything works well but due to my inexperience some problems could exist.
If needed, you can contact me by mail (mosselini1@hotmail.com) and I will check it out when i will have time.
I see this mod as a proof of concept, I think it would work as vanilla feature: it isn't op since you need to design a relatively complex machine to mine to harness its full potential and I locked it behind netherite which would make it an endgame item.
While this wouldn’t be the most useful redstone component, this could lead to more crazy designs to go beyond autonomous farms and enormous storage facilities (Nexus by EthosLab for example) to automatic factories.
Add this to the fact that the code itself is done purely vanilla and easy to implement and this could be really nice.
While the main machine is a bit complex, significant simplifications exist for some cases: ex : "only 1 element type" and "only 1 element", ...
This means that for example compacting and uncompacting resources (ex: ironbars to blocks, blocks to ironbars) is simple, which could help alleviate these tedious tasks.
The machine itself is nowhere near optimised, I left it this way so it could be more didactic/understandable. I could already easily compact it myself and I am sure redstone pros could compact it much more.
Data:
All the information can be found on the vsac modrinth page.
I made a github repository (link on vsac modrinth page) for this mod where you can find, amongst others, the mod source code, a map containing the crafting machines, a diagram explaining the machine, ... .
Licence:
You are free to use everything from what i made available on the vsac modrinth page,
but please mention and provide a link to this page if you do use something in any way.
评论 0
登录后参与评分
还没有评论,来抢沙发吧