Chemical (Mekanism)
Use the chemical requirement in a KubeJS 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 :
Slurry
The
gas,infusion,pigmentandslurryparams must be the ID of the chemical:"namespace:id"example :"mekanism:sulfuric_acid"You can also specify an amount (in mB) :"mekanism:sulfuric_acid 500"If no amount is specified the default is 1000mB.The
tankparam must be a string corresponding to a tank id defined in a custom machine json Chemical Componenttankproperty.
Example
This recipe will consume 1000mB of steam gas to produce 100mB of white pigment :
Last updated