Skip to main content

Offset (Block Condition Type)

Checks a block condition at a position offset from the current one.

Type ID: apoli:offset

Fields

FieldTypeDefaultDescription
conditionBlock Condition TyperequiredThe condition to check at the offset position.
xInteger0The offset on the X axis.
yInteger0The offset on the Y axis.
zInteger0The offset on the Z axis.

Examples

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

This checks whether the block above is a grass block.