Modifiers
Make a machine upgrade able to alter a recipe requirement.
Requirement modifiers are used to tweak some properties of a recipe requirement.
They are defined in json inside of the modifiers
property of the machine upgrade item json.
List of properties that can be modified
Requirement
Target
Modified property
Speed
-
The recipe's time
property
Function
"chance"
chance
Properties
The requirement modifier has 4 mandatory properties and 2 optional property.
Mandatory properties
Optional properties
Example
A modifier that half the time needed to process a recipe :
{
"requirement": "custommachinery:speed",
"mode": "input",
"operation": "multiplication",
"modifier": 0.5
}
A modifier that double the energy per tick consumed by a recipe :
{
"requirement": "custommachinery:energy_per_tick",
"mode": "input",
"operation": "multiplication",
"modifier": 2.0
}
A modifier that has 50% chance to add 1 item produced by a recipe :
{
"requirement": "custommachinery:item",
"mode": "output",
"operation": "addition",
"modifier": 1,
"chance": 0.5
}
Last updated