-
Notifications
You must be signed in to change notification settings - Fork 17
Redstone Requirement
Redstone Requirement is used to make the recipe work only when the machine receive a specific redstone signal.
This Requirement is an input only requirement, meaning that you don't have to define the "mode" property. It is used only to block or allow the usage of a recipe under certains conditions but don't have any real inputs or outputs.
The Requirement type of Redstone Requirement is : "type": "custommachinery:redstone"
Put this in the requirement json to define a Redstone Requirement.
Beside the "type" mandatory property the Redstone Requirement only have 1 other mandatory property and 2 optional property.
Description : The redstone signal power needed for the machine to work, this will be compared to the machine received redstone signal using the comparator
property.
Example : "power": 1
Description : A Comparator, that define how the specified value in the power
property will be compared to the machine received redstone signal.
Default : ">=" The recipe will start only if the machine received redstone signal is greater or equals to the power specified in the power
property.
Example : "comparator": "=="
The recipe will only start if the machine received redstone signal is equals to the power specified in the power
property.
Description : A boolean, if false the requirement will not display in jei, if true it will display as a little green "+" below the recipe.
Default : true (The requirement will display)
Example : "jei": false
(The requirement will not display)
A Redstone Requirement that will make the recipe start only if the machine received redstone signal is lower or equals than 8.
{
"type": "custommachinery:redstone",
"power": 8,
"comparator": "<="
}
3. Machine GUI
- Dump Element
- Energy Element
- Fluid Element
- Fuel Element
- Player Inventory Element
- Progress Bar Element
- Reset Element
- Slot Element
- Status Element
- Text Element
- Texture Element
5. Catalysts
- Biome Requirement
- Block Requirement
- Command Requirement
- Dimension Requirement
- Drop Requirement
- Durability Requirement
- Effect Requirement
- Energy Requirement
- Energy Per Tick Requirement
- Entity Requirement
- Fluid Requirement
- Fluid Per Tick Requirement
- Fuel Requirement
- Item Requirement
- Light Requirement
- Loot Table Requirement
- Position Requirement
- Structure Requirement
- Redstone Requirement
- Time Requirement
- Weather Requirement