Skip to main content

Light Level (Block Condition Type)

Compares the light level at the block's position with a number.

Type ID: apoli:light_level

note

Without a light_type, the light level used is the higher of the block light level and the internal sky light level at the position.

Fields

FieldTypeDefaultDescription
light_typeStringoptionalWhich kind of light to compare: "sky" or "block".
comparisonComparisonrequiredHow the light level is compared with compare_to.
compare_toIntegerrequiredThe number the light level is compared with.

Examples

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

This checks whether the block light at the position, the light given off by blocks, is above 10.