-
Notifications
You must be signed in to change notification settings - Fork 17
Light Requirement
Light Requirement is used to check the sky or block light level at the machine position.
This requirement is INPUT only, you don't have to specify a mode
property. This requirement will block the start of the recipe if the required light level is not met, but it will never consume or produce anything.
The Requirement type of Light Requirement is : "type": "custommachinery:light"
Put this in the requirement json to define an Light Requirement.
Beside the "type"mandatory property the Light Requirement have 1 other mandatory property and 3 optional property.
Description : Define the light level needed to start the recipe processing. Vanilla light level is an integer value between 0 (no light) and 15 (full light).
Example : "light": 8
Require a light level of 8.
Description : A Comparator used to test the current machine light level with the required light level specified in the light
property. The recipe will start only if: machine_light_level [comparator] required_light_level
.
Default : ">="
Example : "comparator": "=="
The recipe will start only if machine_light_level == required_light_level
Description : A boolean, if true the requirement will check the sky light level, if false it will check the block light level.
Note : The maximum sky light level the machine can see is 14.
Default : false - Check the block light level.
Example : "sky": true
The machine will check the sky light level.
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 Light Requirement that will make the recipe start only if the sky light level is below 7 :
{
"type": "custommachinery:light",
"light": 7,
"comparator": "<<",
"sky": true
}
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