Chemical (Mekanism)
Make the machine consume or produce any mekanism chemicals
This requirement requires Custom Machinery Mekanism to be installed.
Chemical requirement is used to define Mekanism chemicals inputs and outputs in a custom machine recipe.
To use it you need to provide the registry name and the amount (in mB, with 1000mB being 1 Bucket) of the chemical you want the recipe to consume/produce.
This requirement is available in both input
and output
modes.
In input mode : When starting to craft the recipe, the machine will consume the desired amount of the specified chemical from the input tank it's in.
In output mode : When finishing to craft the recipe, the machine will produce the desired amount of the specified chemical and put it in the first disponible tank.
If the requirement is _per_tick
the specified amount will be consumed/produced each tick instead of once.
All of Mekanism chemicals types are supported :
Gas
Infusion
Pigment
Slurry
The type of chemical is defined in the type
property (see below).
Properties
The chemical requirements has 4 mandatory properties and 2 optional properties.
Mandatory properties
"type": "custommachinery:gas" //Mandatory to define a gas requirement.
OR
"type": "custommachinery:gas_per_tick" //Mandatory to define a gas per tick requirement.
OR
"type": "custommachinery:infusion" //Mandatory to define an infusion requirement.
OR
"type": "custommachinery:infusion_per_tick" //Mandatory to define an infusion per tick requirement.
OR
"type": "custommachinery:pigment" //Mandatory to define a pigment requirement.
OR
"type": "custommachinery:pigment_per_tick" //Mandatory to define a pigment per tick requirement.
OR
"type": "custommachinery:slurry" //Mandatory to define a slurry requirement.
OR
"type": "custommachinery:slurry_per_tick" //Mandatory to define a slurry per tick requirement.
Optional properties
Example
A gas chemical requirement that will make the custom machine recipe produce 500mB of Mekanism sulfuric acid with 50% chance :
{
"type": "custommachinery:gas",
"mode": "output",
"chemical": "mekanism:sulfuric_acid",
"amount": 500,
"chance": 0.5
}
Last updated