Custom Machinery
实现你梦想中的机器
你是否曾遇到过这样的情况:在制作你的精彩整合包时,想要添加一个自定义配方,但整合包中没有任何现成的机器能满足你的需求?
比如:“我想要一台能接收 3 种物品、5 种不同流体和一些能量来合成另一种物品的机器”,但没有机器能做到这一点。
或者当你找到一个添加了符合你需求的机器的模组,但该模组还添加了大量你不希望出现在整合包中的其他内容。
那么,这个模组允许你使用数据包创建自己的机器并将其添加到游戏中。
你可以自定义自定义机器的各个方面,从外观(模型、纹理、声音、光照、自定义 GUI)到功能(输入和输出的数量、类型及容量),当然,你还可以添加由该机器处理的自定义配方。
目前自定义机器可以:
- 拥有你想要的样子(物品、方块,甚至自定义模型)。
- 根据状态(空闲/运行中/错误/暂停)显示不同的外观。
- 在处理配方时发光。
- 在处理配方时播放声音。
- 包含 FE(Forge Energy,兼容 RF)。
- 包含任意流体,你可以决定内部流体槽的数量、容量以及最大输入和输出量。
- 包含任意物品,你可以决定内部物品栏位的数量。
- 点击机器时显示自定义 GUI,你可以在其中查看机器内容和配方进度。
- 基于红石信号暂停(可在机器 JSON 中配置)。
- 根据其状态发射红石信号(也可在机器 JSON 中配置)。
- 接收自定义定义的升级,以改变配方的处理(输入/输出/速度)。
- 配置为允许每个侧面的每个槽位/流体槽/缓冲区单独进行能量、物品和流体的输入或输出。
目前自定义机器配方可以:
- 按每秒刻或一次性消耗或产生 FE(Forge Energy,兼容 RF)。
- 按每秒刻或一次性消耗或产生任意流体,支持流体标签。
- 消耗或产生任意物品,支持物品标签。支持 NBT 数据和耐久度。
- 仅在 Minecraft 世界一天的特定时间处理配方。
- 仅在特定的世界位置、生物群系或维度处理配方。
- 当配方开始、处理中或结束时执行命令。
- 需要消耗燃料物品进行燃烧(类似熔炉)。
- 以一定概率(被消耗/产生的几率)消耗或产生 FE、流体、物品并使用命令。
- 对附近的生物施加效果。
- 仅在特定的天气条件下处理配方。
- 仅在机器接收到特定红石信号时处理配方。
- 检查附近的实体,消耗其生命值或直接击杀。
- 检查特定的天空/方块光照等级。
- 检查/放置/替换/破坏/销毁附近的方块。
- 要求机器周围形成复杂的结构。
- 基于战利品表文件输出物品。
- 在地面掉落或消耗物品。
- 处理 Crafttweaker 和 KubeJS 脚本。
你可以在这里找到一些工作正常的自定义机器示例,或者下载Test Datapack。
你可以下载Test Resourcepack 来查看如何将自定义 JSON 模型应用到机器上(本例中的“石头发电机”)。
所有这些都可以使用数据包中的 JSON 文件完成,并且通过 /reload 命令可以在游戏内应用对此文件的所有更改,无需重启游戏。
此模组完全兼容 JEI 和 The One Probe,强烈建议使用这些模组以获得使用 Custom Machinery 的最佳体验。
此模组包含完整的 Crafttweaker 和 KubeJS 支持,用于创建配方和升级。
Fabric 版本需要 Reborn Core
Wiki:你可能需要的所有关于制作自定义机器的信息都可以在 Wiki 中找到:
Issues:如果发现任何错误或想建议新功能或功能:
Discord:如有疑问或寻求支持,请加入 Discord 服务器:
License:此模组遵循 GNU LESSER GENERAL PUBLIC LICENSE 许可,你可以自由地在任何整合包中使用此模组。
Custom Machinery
make your dream machine come true
Did you ever been in the situation where, when creating your awesome modpack, you wanted to add a custom recipe but no available machine in your pack match what you want ?
Like "I want a machine that takes 3 items, 5 differents fluids and some energy to create another item" but no machine can do that.
Or the case when you found a mod that add a machine that can fit your needs but the mod also add tons of stuff that you don't want in your pack.
Well this mod let you create your own machines using datapacks and add them in the game.
You can customise everything about your custom machine, from the appearance (model, textures, sounds, lightning, custom gui) to the functionality (how many inputs and outputs, their type and capacity) and of course you can add your own recipes that will be processed by the machine.
Currently a custom machine can :
- Have the appearance you want (item, block, or even a custom model).
- Have differents appearances based on it's status (idle/running/errored/paused).
- Emit light based on if the machine is processing a recipe.
- Play a sound when the machine is processing a recipe.
- Contains FE (Forge Energy, compatible with RF)
- Contains any fluid, you decide the number of internal fluid tanks, their capacity and max input and output.
- Contains any item, you decide the number of internal item slots.
- Have a custom GUI when you click on the machine, where you can see the contents of the machine and the progress of the recipe.
- Pause based on a redstone signal (configurable in the machine json)
- Emit a redstone signal based on it's status (also configurable in the machine json)
- Receive custom defined upgrades that change the processing of recipes (inputs/outputs/speed)
- Be configured to allow input or outputs of energy, items and fluid for each slot/tank/buffer for each side separately.
Currently a custom machine recipe can :
- Consume or produce FE (Forge Energy, compatible with RF) on a per-tick basis or in one time.
- Consume or produce any fluid on a per-tick basis or in one time, works with fluid tags.
- Consume or produce any item, works with item tags. Support NBT and durability.
- Process a recipe only at a certain time of the Minecraft world day.
- Process a recipe only at a certain world position, biome or dimension.
- Use a command when a recipe start, is processing or finish.
- Require the usage of a fuel item to burn (like the furnace).
- Consume or produce FE, fluids, items and use commands with a probablity (chance to be consumed/produced).
- Give effects to nearby mobs.
- Process a recipe only under a specific weather.
- Process a recipe only when the machine receive a specific redstone signal.
- Check for nearby entities, consume their health points or kill them.
- Check for a specific sky/block light level.
- Check/place/replace/break/destroy nearby blocks.
- Require a complex structure to be formed around the machine.
- Output items based on a loot table file.
- Drop or consume items on ground.
- Process Crafttweaker and KubeJS scripts.
You can find some examples of working custom machines here or download the Test Datapack.
You can download the Test Resourcepack to see how a custom json model can be applied to a machine (the "stone generator" in this example)
All of this can be made using a json file in a datapack, and all changes to this file can ba applied in-game with the /reload command, no reboot of the game are needed.
This mod comes with a full compatibility with JEI and The One Probe and the usage of these mods are heavily advised to use Custom Machinery in the best conditions.
This mod include complete Crafttweaker and KubeJS support for creating recipes and upgrades.
The Fabric version requires Reborn Core
Wiki : All info you may need to make your custom machines can be found on the wiki :
Issues : If you find any bugs or if you want to suggest a new feature or functionality :
Discord : For questions or support, join the Discord Server :
License : This mod is licensed under the GNU LESSER GENERAL PUBLIC LICENSE you are free to use this mod in any modpack.
评论 0
登录后参与评分
还没有评论,来抢沙发吧