本帖最后由 DooK 于 2023-1-24 21:19 编辑
版本为1.16.5这是目前做的自定义机器界面,现在遇到的问题是。
造石机:两个流体槽,如果注入水两个槽都会装满水,无法注入其他液体(需要限制槽位只允许某些液体的输入)
聚爆压缩机:四个输入槽,TNT只能在指定槽位参与制作,但是管道输入会跑到其他槽位导致自动化卡住(限制指定物品槽位只允许物品输入,设置槽位黑名单)
模组wiki链接(只会机翻没找到相关教程,不知道有没有实现方式):
https://github.com/Frinn38/Custom-Machinery/wiki
版本为1.16.5这是目前做的自定义机器界面,现在遇到的问题是。
造石机:两个流体槽,如果注入水两个槽都会装满水,无法注入其他液体(需要限制槽位只允许某些液体的输入)

聚爆压缩机:四个输入槽,TNT只能在指定槽位参与制作,但是管道输入会跑到其他槽位导致自动化卡住(限制指定物品槽位只允许物品输入,设置槽位黑名单)

模组wiki链接(只会机翻没找到相关教程,不知道有没有实现方式):
https://github.com/Frinn38/Custom-Machinery/wiki
只能装水的液体槽复制代码设置黑名单的物品槽复制代码但是,为什么是黑名单,你想让这个槽只能装tnt,那不应该是白名单吗?
- {
- "type": "custommachinery:fluid",
- "capacity": 10000,
- "id": "watertank",
- "maxInput": 1000,
- "maxOutput": 0,
- "mode": "input",
- "filter": ["minecraft:water"],
- "whitelist": true
- }
- {
- "type": "custommachinery:item",
- "id": "tnt",
- "filter": ["随便写点什么"],
- "mode": "input",
- }
无敌三脚猫 发表于 2023-1-24 23:03
只能装水的液体槽设置黑名单的物品槽但是,为什么是黑名单,你想让这个槽只能装tnt,那不应该是白名单吗? ...

DooK 发表于 2023-1-24 23:51
白名单让TNT只能进入这个槽位,黑名单防止TNT跑到其他槽位(白名单咋写嘞) ...
写在"filter"里的就是黑名单
"filter"和"whitelist": true一起写,就是白名单