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
| Field | Type | Default | Description |
|---|---|---|---|
light_type | String | optional | Which kind of light to compare: "sky" or "block". |
comparison | Comparison | required | How the light level is compared with compare_to. |
compare_to | Integer | required | The 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.