Offset (Block Condition Type)

Checks the provided Block Condition Type at a position offset from the current position.

Checks the provided Block Condition Type at a position offset from the current position.

Type ID: apoli:offset

Fields

FieldTypeDefaultDescription
conditionBlock Condition TypeThe condition to check with the given offset.
xInteger0How much to offset the position on the x-axis.
yInteger0How much to offset the position on the y-axis.
zInteger0How much to offset the position on the z-axis.

Examples

"block_condition": {
    "type": "apoli:offset",
    "condition": {
        "type": "apoli:block",
        "block": "minecraft:grass_block"
    },
    "y": 1
}

This example will check if the block above the block is a Grass Block.