Skip to content

Light Level

Provides the light level at a position.

Type ID: kaya:light_level

Format

Field Type Default Description
light_type Light Type optional Determines the type of light which level will be provided.
position Vec3 Provider The position to get the light level from.

Light type

A string that indicates where the light came from.

Values

Value Description
sky The light level from the sky.
block The light level from a block.
Info

If light_type is not specified, the highest light level between the block light level and internal sky light level will be provided.

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

Example

{
    "type": "kaya:light_level",
    "light_type": "sky",
    "position": {
        "type": "kaya:offset",
        "vector": {
            "type": "kaya:block/position",
            "block": "used_block"
        },
        "offset": [
            0.0,
            1.0,
            0.0
        ]
    }
}

This example will provide the sky light level relative to the position of the block provided by the kaya:used_block context parameter, offset by 1 block up.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.