Light Level

Block Condition Type

Allows checking the light level at the block's position.

Type ID: origins:light_level

Note

If no light type is specified in the light_type field, the highest light level between the block light level and internal sky light level will be used as the "resulting" light level of the position of the block.

See Minecraft Wiki: Light (Internal light level) for more information about internal sky light levels.

Fields

Field Type Default Description
light_type String optional If specified, determines the type of light level to compare. Accepts "sky" or "block".
comparison Comparison Determines how the light level should be compared to the specified value.
compare_to Integer The value at which the light level will be compared 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.