Light
Make the recipe requires a certain light level in the machine
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 : "custommachinery:light".
Properties
The light requirement have 2 mandatory properties and 3 optional properties.
Mandatory properties
"type": "custommachinery:light" //Mandatory to define a light requirement.Optional properties
Comparator
Name : comparator
comparatorDescription :
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
Example
A light requirement that will make the recipe start only if the sky light level is below 7 :
Last updated