Light Level

Block Condition Type

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.

Examples

"block_condition": {
    "type": "origins:light_level",
    "light_type": "block",
    "comparison": ">",
    "compare_to": 10
}

This example will check if the light level at the specified position is more than 10, and is emitted by a block.