Component modifiers
Make a machine upgrade able to alter a machine component.
Component modifiers are used to tweak some properties of a machine component.
They are defined in json inside of the components property of the machine upgrade item json.
List of properties that can be modified
Component
Needs id
Target
Modified property
Properties
The component modifier has 4 mandatory properties and 4 optional property.
Mandatory properties
Optional properties
Example
A modifier that double energy capacity :
{
"component": "custommachinery:energy",
"target": "capacity",
"operation": "multiplication",
"modifier": 2
}A modifier that add 50mB of max input in a fluid component with id "input1" :
{
"component": "custommachinery:fluid",
"id": "input1",
"target": "max_input",
"operation": "addition",
"modifier": 50
}Last updated