The contraption machine component is used to customize which sides of the machine are able to connect with Create kinetic network (shafts, gears, motors etc...).
This component is fully optional, if not present the machine will still be able to interact with Create kinetic network on all sides.
This component can also be used to make the machine bring a kinetic stress impact on the network by default when the machine is idle, errored or paused. If the machine is running the kinetic stress impact defined on the recipe takes priority over the value defined in this component.
Only one contraption component must be added per machine.
Contraption component is defined with "type": "custommachinery:contraption" in the json.
Properties
The contraption component has 1 mandatory property and 2 optional properties :
Mandatory property
"type": "custommachinery:contraption"//Mandatory to define a contraption component.
Optional properties
Stress impact
Name : stress_impact
Description :
A positive decimal value that define the kinetic stress impact the machine will bring to the network when idle, errored or paused.
If the machine is running the kinetic stress impact defined on the recipe takes priority over the value defined in this component.
Note : if the machine currently has a rotation speed of 64 rpm and a stress impact of 2 that means it will take a total of 64 * 2 = 128 SU from the kinetic network, of course if the network doesn't have enouh SU capacity it will overstress and stop rotating.
Default : 0
Example :
The machine will add a kinetic stress impact of 2 by default :
"stress_impact": 2
Config
Name : config
Description :
An I/O side config specified the same as any other sided components (item, fluid, energy...). See its dedicated wiki page for more info about usage and syntax.
The difference here is that input, output and both modes does exactly the same.
As long as the side mode is not "none" the machine will accept kinetic network on that side.
Default :
The "both" side mode will be used as default on all sides, which mean the machine will accept kinetic network on all sides by default.
Example :
The machine will accept kinetic network only on the top side :
"config": {"default":"none","top":"both"}
Example
An example of a contraption component that will allow the machine to interact with a create shaft only on the left and right sides and bring a kinetic stress impact of 4.