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.

.requireChemical(chemical)
.requireChemical(chemical, "tankID")

.requireChemicalPerTick(chemical)
.requireChemicalPerTick(chemical, "tankID")

.produceChemical(chemical)
.produceChemical(chemical, "tankID")

.produceChemicalPerTick(chemical)
.produceChemicalPerTick(chemical, "tankID")
  • The chemical param must be specified using the corresponding brackets :<chemical:mekanism:id>

    You can specify an amount like this : <chemical:mekanism:sulfuric_acid> * 1000

  • The tank param must be a string corresponding to a tank id defined in a custom machine json Chemical Component tank property.

Example

This recipe will consume 1000mB of steam gas and produce 100mB of white pigment :

<recipetype:custommachinery:custom_machine>.create("custommachinery:boiler", 20)
.requireChemical(<chemical:mekanism:steam> * 1000)
.produceChemical(<chemical:mekanism:white> * 100)
.build();

Last updated