Chemical (Mekanism)
Use the chemical requirement in a CT recipe
This requirement requires Custom Machinery Mekanism to be installed.
Use one of these methods to add a Chemical Requirement to the recipe.
Gas :
.requireGas(gas)
.requireGas(gas, "tankID")
.requireGasPerTick(gas)
.requireGasPerTick(gas, "tankID")
.produceGas(gas)
.produceGas(gas, "tankID")
.produceGasPerTick(gas)
.produceGasPerTick(gas, "tankID")
Infusion :
.requireInfusion(infusion)
.requireInfusion(infusion, "tankID")
.requireInfusionPerTick(infusion)
.requireInfusionPerTick(infusion, "tankID")
.produceInfusion(infusion)
.produceInfusion(infusion, "tankID")
.produceInfusionPerTick(infusion)
.produceInfusionPerTick(infusion, "tankID")
Pigment :
.requirePigment(pigment)
.requirePigment(pigment, "tankID")
.requirePigmentPerTick(pigment)
.requirePigmentPerTick(pigment, "tankID")
.producePigment(pigment)
.producePigment(pigment, "tankID")
.producePigmentPerTick(pigment)
.producePigmentPerTick(pigment, "tankID")
Slurry
.requireSlurry(slurry)
.requireSlurry(slurry, "tankID")
.requireSlurryPerTick(slurry)
.requireSlurryPerTick(slurry, "tankID")
.produceSlurry(slurry)
.produceSlurry(slurry, "tankID")
.produceSlurryPerTick(slurry)
.produceSlurryPerTick(slurry, "tankID")
The
gas
,infusion
,pigment
andslurry
params must be specified using the corresponding brackets :<gas:mekanism:id>
<infuse_type:mekanism:id>
<pigment:mekanism:id>
<slurry:mekanism:id>
You can specify an amount like this :
<gas:mekanism:sulfuric_acid> * 1000
The
tank
param must be a string corresponding to a tank id defined in a custom machine json Chemical Componenttank
property.The
amount
param must be a positive integer.
Example
This recipe will consume 1000mB of steam gas and produce 100mB of white pigment :
<recipetype:custommachinery:custom_machine>.create("custommachinery:boiler", 20)
.requireGas(<gas:mekanism:steam> * 1000)
.producePigment(<pigment:mekanism:white> * 100)
.build();
Last updated