Redstone component
Customize the redstone behavior and emission of the machine.
Redstone component let you interact with the vanilla redstone logic system. It doesn't store anything on the machine, instead it can be used to define the redstone behavior of the machine.
This component is fully optional, if not added the machine won't react or emit redstone signal.
Redstone component is defined as a unique machine component, meaning that you can only have 1 per machine.
If you try to add more than 1 redstone component only the last will be used.
Redstone component is defined with "type": "custommachinery:redstone" in the machine json.
Properties
The redstone component has 1 mandatory property and 7 optional properties :
Mandatory property
"type": "custommachinery:redstone" //Mandatory to define a redstone component.Optional property
Power to pause
Name : powertopause
powertopauseDescription :
Define the redstone signal power needed to pause the machine.
Put a number greater than 15 if you want the machine to never pause on redstone signal (since vanilla max redstone power is 15).
Default : 1
The machine will pause at any redstone signal.
Example :
The machine will pause if a redstone signal of 5 or more is applied to it.
"powertopause": 5Comparator input type
Name : comparatorinputtype
comparatorinputtype Description :
A component type that will be used to determine the redstone signal emitted by a vanilla comparator. All currently supported component types are :
custommachinery:itemWill output a signal corresponding to the item in it's slot, the same way the vanilla chest does.custommachinery:fluidWill output a signal corresponding to the amount of fluid in it's tank, 0 empty, 15 full, 8 half...custommachinery:energyWill output a signal corresponding to the amount of energy in it's buffer, 0 empty, 15 full, 8 half...
Default : custommachinery:energy
custommachinery:energyThe comparator will output a redstone signal based on the machine energy buffer (if present), or 0 if the machine doesn't have an energy component.
Example :
The comparator will output a redstone signal based on one of the machine internal fluid tank. Define the used fluid tank with the comparatorinputid property.
Comparator input id
Name : comparatorinputid
comparatorinputidDescription :
Used with the comparatorinputtype property, define which component will be used in case of the component type specified is not single (so for items and fluid).
The id provided must be the same than the id defined in the component json. If no component can be found for this type and with this id, the comparator will output a redstone signal of 0.
Default : nothing
Example :
The comparator will search for a component of the type defined in the comparatorinputtype property and with the id input and if found, will output a redstone signal based on this component.
Example
A redstone component that will make the machine :
Output a redstone signal of 0 when idle
Output a redstone signal of 7 when crafting
Output a redstone signal of 14 when errored
Pause when a redstone signal of 15 is received
Nearby comparators will output a signal based on an item in a slot with id "input"
Last updated