Light Level
Allows checking the light level at the block's position.
Type ID: origins:light_level
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
light_type |
String | optional | The type of light level to compare. Either sky or block. If no type is provided, the greater value of the two types will be used, which is the "resulting" light level of that position. |
comparison |
Comparison | How the light level should be compared to the specified value. | |
compare_to |
Integer | The value to compare the light level at the block's position to. |
Example:
"block_condition": {
"type": "origins:light_level",
"light_type": "block",
"comparison": ">",
"compare_to": 10
}
This example checks if the light level at the specified position is emitted by a block, and more than 10.