概述
本模组添加了 Mechanical Extruder(动力造石机),能根据相邻的流体/方块生产任意方块/物品。
该模组是为整合包准备的,因此只有非常基础的配方。
灵感来自于热力系列的造石机。
配方例子
ingredients 中方块/流体不分左右。
result 为方块或物品。
以圆石为例(已内置):
{
"type": "create_mechanical_extruder:extruding",
"ingredients": [{
"fluid": "minecraft:water",
"amount": 1000
}, {
"fluid": "minecraft:lava",
"amount": 1000
}],
"result": {
"item": "minecraft:cobblestone"
}
}
以玄武岩为例(已内置):
{
"type": "create_mechanical_extruder:extruding",
"ingredients": [{
"fluid": "minecraft:lava",
"amount": 1000
}, {
"item": "minecraft:blue_ice"
}],
"catalyst": {
"item": "minecraft:soul_sand"
},
"result": {
"item": "minecraft:basalt"
}
}
KubeJS
1.18.2 需要 KubeJS 5。1.19.2 需要 KubeJS 6。
案例:
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:sand').withChance(0.3),
[Item.of('minecraft:cobblestone'),Item.of('minecraft:stone')])
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:dirt'),
[Item.of('minecraft:sand'),Item.of('minecraft:stone')]).withCatalyst('minecraft:clay')