
Fluid Converter
你肯定经历过这种情况:安装了 Mekanism、Create、TFMG 和 Immersive Engineering,然后打开 JEI 发现四种互不相通的“熔融钢”,或者六种不同的原油,亦或是三种蜂蜜流体。这个模组通过一个个方块在游戏中的转换来解决这个问题。
功能介绍
放置转换器,将一种流体接入其中一个面,设置另一个面为输出,然后选择你想要它转化成的目标。该方块会以可配置的速度抽取输入槽中的流体并填充输出槽。这就是它的核心循环。
右键点击方块以打开其 GUI。从那里,点击“侧面”按钮会打开一个小型的面配置界面:这是一个展开的立方体,每个面在点击时会在“输入 (Input)”、“输出 (Output)”和“禁用 (Disabled)”之间切换。随后,游戏世界中该方块上会出现彩色叠加层——青色代表输入,橙色代表输出——让你一眼就能看出哪里接了管线。
配方不随模组附带
这是刻意为之。这个模组的核心意义在于,正确的 molten_steel_A → molten_steel_B 配对取决于你实际运行的模组,而任何静态的配方列表都无法适应整合包的环境。所以你需要自己连接它们。
有三种方法可以实现,且可以混合使用:
在游戏中。 作为 OP 或在创造模式下,打开转换器你会看到一个“管理员 (Admin)”按钮。点击它,放入一种输入流体和一种输出流体,然后保存。从此之后,服务器上的所有转换器都知道这一对映射关系。数据存储在 config/fluidconverter/learned_recipes.json 中,重启后保留。
通过聊天栏或控制台。 /fluidconverter recipe learn <inFluid> <inAmount> <outFluid> <outAmount> [reverse]。支持从流体注册表中自动补全。同样支持 list(列出)、forget(忘记)和 clear(清除)。非 OP 玩家甚至看不到此命令。
数据包。 data/<your-namespace>/recipe/<anything>.json,类型为 fluidconverter:converting。如果你正在制作整合包并希望将转换配方与其他内容一起版本控制,这是正确的方法。/reload 命令可以实时读取编辑内容。
默认情况下,映射是双向的。教会转换器 A → B 后,除非你设置了 "reverse": false,否则它也会接受 B → A。这个开关在主 GUI 的管理员界面、命令以及数据包 JSON 中均可设置。
实用细节
每个面都可以独立配置,因此单个转换器可以位于节点处,一端接收来自精炼厂的输入,另一端将输出送回你的储罐网络,其余面留作他用。能量可以从任意面输入,无论其角色如何,因此电缆不会与管道争夺侧面接口。
输出槽锁定为你所选定的流体。机器不会覆盖输出槽中已存在的其他流体——你必须主动排空它。GUI 中两个槽位都有排水按钮,大小经过设计,以免你意外损失库存。
红石信号有三种模式,可通过主 GUI 中的按钮切换:完全忽略信号、仅在通电时运行、仅在断电时运行。适用于批量处理或紧急切断。
能量基于 FE 制,默认开启,且方块接受来自所有面的电力——包括已经用于流体的那些面。默认设置比较温和(每毫桶消耗 10 FE,缓冲容量 100k),且可调节。如果你根本不想处理能量问题,可以将 energy.enabled = false 设置为免费运行。
暂停按钮可以停止机器而无需破坏管线,这在调试网络停滞原因时比你想像的更重要。
扳手(任何标记为 c:tools/wrench 或 c:tools/wrenches 的物品)在使用时会顺时针旋转方块,而在潜行状态下使用扳手则会拾取方块,同时完整保留其每个方块的内部状态——侧面角色、红石模式、选定的输出、槽内内容和缓冲能量。
全服务端逻辑
配置文件位于 <world>/serverconfig/fluidconverter-server.toml,是一个 服务端类型 (server-type) 配置。在专用服务器上,速率由服务器权威决定并在玩家加入时推送给客户端,因此玩家看到的进度条与实际服务器执行的操作一致。
在任何学习/遗忘/清除操作后,新状态会广播给所有连接的玩家。打开的管理员界面会实时更新。无需重新登录。
如果你不希望向拥有创造模式的玩家暴露“管理员”按钮,将 machine.admin_menu_enabled = false 即可完全隐藏它。控制台仍然可以使用这些命令。
适用环境
Minecraft 1.21.1,NeoForge 21.1.228,Java 21。
暂无移植到 1.20.x 的计划。如果有兴趣移植到更高版本的 MC,请提交 Issue,我会考虑一下。
整合包使用
尽管拿去用吧。把它放进你的整合包,无论是公开还是私有,免费还是付费,都不需要事先询问。如果能链接回项目页面会很感激,但这不是必须的。如果某个问题仅在你的整合包中出现,提供包含模组列表的 Issue 能帮我复现问题。
链接

Fluid Converter
You know how it goes. You install Mekanism, Create, TFMG and Immersive Engineering, then look at JEI and find four kinds of "molten steel" that refuse to talk to each other. Or six different crude oils. Or three honey fluids. This mod fixes that, one in-world block at a time.
What it does
Place the converter, pipe a fluid into one face, set another face as output, pick what you want it to become. The block drains the input tank and fills the output tank at a configurable rate. That is the entire feature loop.
Right-click the block to open its GUI. From there, the sides button opens a small face-config screen: an unfolded cube where each face cycles between Input, Output and Disabled when clicked. A coloured overlay then shows up on the block in-world — cyan for input, orange for output — so you can tell at a glance what's wired where.
Recipes don't ship with the mod
That is intentional. The whole point of this thing is that the right molten_steel_A → molten_steel_B pairing depends on which mods you're actually running, and no static recipe list survives contact with the modpack. So you wire it yourself.
There are three ways to do it, and you can mix them:
In-game. As an op or in creative, open the converter and you'll see an Admin button. Click it, drop one fluid in and another out, save. From that point every converter on the server knows the pair. Stored under config/fluidconverter/learned_recipes.json, persists across restarts.
From chat or console. /fluidconverter recipe learn <inFluid> <inAmount> <outFluid> <outAmount> [reverse]. Autocompletes from the fluid registry. list, forget and clear work too. Non-ops don't even see the command.
Datapacks. data/<your-namespace>/recipe/<anything>.json, type fluidconverter:converting. This is the right answer if you're putting a pack together and want conversions versioned alongside the rest. /reload picks up edits live.
Pairs are bidirectional by default. Teach the converter A → B and it will accept B → A too unless you set "reverse": false. The toggle is exposed in the admin GUI, in the command, and in the datapack JSON.
Practical bits
Each face is independently configurable, so a single converter can sit on a junction with one input from your refinery, one output back into your tank network, and the rest left for anything else. Energy can come in from any face regardless of its role, so cables don't fight pipes for sides.
The output tank is locked to whatever you selected. The machine will not overwrite a different fluid that's sitting in the output tank — you have to actively drain it. There are drain buttons in the GUI for both tanks, sized so you don't accidentally lose a stockpile.
Redstone has three modes, cycled from a button in the main GUI: ignore signal entirely, only run when powered, only run when unpowered. Useful for batching, useful for emergency cutoffs.
Energy is FE-based and on by default, and the block accepts power on every face — including the ones already wired up for fluids. The defaults are gentle (10 FE per mB, 100k buffer) and tunable, but if you'd rather not deal with it at all, set energy.enabled = false and it runs for free.
A pause button stops the machine without breaking the pipework, which matters more than you'd think when you're debugging why a network has stalled.
A wrench (any item tagged c:tools/wrench or c:tools/wrenches) rotates the block clockwise on use, and shift-wrench picks the block up with its full per-block state intact — side roles, redstone mode, selected output, tank contents, buffered energy.
Server-side everything
The config lives at <world>/serverconfig/fluidconverter-server.toml and is a server-type config. On a dedicated server, rates are authoritative and pushed to clients on join, so the progress bar a player sees matches what the server is actually doing.
After any learn/forget/clear, the new state is broadcast to every connected player. Admin screens that are open update in real time. No relog needed.
If you don't want the Admin button exposed to creative-flagged players at all, machine.admin_menu_enabled = false hides it entirely. The commands still work from console.
Built for
Minecraft 1.21.1, NeoForge 21.1.228, Java 21.
No port plans for 1.20.x. If there's interest in a newer MC version, open an issue and I'll look at it.
Modpacks
Go ahead. Put it in your pack, public or private, free or paid, no need to ask. A link back to the project page is appreciated but not required. If something breaks in your pack specifically, an issue with the mod list helps me reproduce it.
Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧