Chemical component (Mekanism)
Add chemical tanks inside the machine.
This component requires Custom Machinery Mekanism to be installed.
This components is used to make the machine able to hold Mekanism chemicals.
It is compatible with Mekanism pressurized pipes and any other mods that use the same system.
Basically adding this component to the machine json will add a chemical tank to the machine.
You can add as much as you want chemical components to your machine.
Each component will act as a separate chemical tank.
Starting from 1.21.1 all 4 Mekanism chemicals (gas, infusion, slurry and pigment) are now merged into a single "chemical" type.
Chemical component is defined with "type": "custommachinery:chemical" in the json.
Properties
The chemical component has 3 mandatory properties and 10 optional properties :
Mandatory properties
"type": "custommachinery:chemical" //Mandatory to define a chemical component.Optional properties
Min output
Name : minOutput
minOutputDescription :
A positive integer that represent the min mB that can be output from the tank during a single tick.
If something (a pipe or the machine's auto-output) try to extract less than the specified amount the transfer will fail and nothing will be extracted.
Default : 0
0Example :
Whitelist
Name : whitelist
whitelistDescription :
A list of chemicals that the component can accept.
The chemicals must be referenced by their registry name like mekanism:steam or mekanism:redstone.
You can also use a tag here using the # prefix like #mekanism:dirty
Default : empty
All chemicals are accepted by the component.
Example :
The component will accept only steam gas and chemicals in the mekanism:dirty tag.
Note : The blacklist (see below) takes priority over the whitelist. If a chemical is in both the blacklist and whitelist it won't be accepted by the component.
Blacklist
Name : blacklist
blacklistDescription :
A blacklist of chemicals that the component can't accept.
The chemicals must be referenced by their registry name like mekanism:steam or mekanism:redstone.
You can also use a tag here using the # prefix like #mekanism:dirty
Default : empty
All chemicals are accepted by the component.
Example :
The slot will accept all chemicals but steam gas and chemicals in the mekanism:dirty tag.
Note : The blacklist takes priority over the whitelist (see above). If a chemical is in both the blacklist and whitelist it won't be accepted by the component.
Mode
Name : mode
modeDescription :
The IO mode of the tank, used only by recipes to know which tanks are inputs and outputs.
Available modes are (input/output/both/none).
While crafting the machine will search for chemicals to consume in input tanks and put the recipe results in the output tanks.
For changing I/O mode of a tank for external interaction, such as buckets and pipes see the Config property below.
Default : both
bothExample :
Unique
Name : unique
uniqueDescription :
A boolean property (true/false) that define if the chemical component can accept a chemical that is already in another chemical component in the same machine.
If the component is set as "unique" a player won't be able to insert a chemical that is already in another tank, even if that tank is full (basically prevent overfill).
Default : false
falseThe chemical component won't care if the fluid is already in another tank.
Example :
The chemical component won't accept chemical that already are in another component.
Radiations
Name : radiations
radiationsDescription :
A boolean property (true/false) that define if the chemical component will emit radiations when the machine is broken.
If set to true, radiations will be emitted when the machine is broken only if that chemical component contains a radioactive chemical.
The amount of radiations released depends of the chemical and the amount stored.
It works the same as when a Mekanism tank/pipe/machine is broken while containing radioactive chemicals.
Default : false
falseThe radioactive chemicals will be voided without releasing radiations.
Example :
Example
An example of gas chemical component that can store 10000mB of sulfuric acid only, send 1000mB/tick and receive 666mB/tick.
Last updated