Skip to main content

Offset (Block Action Type)

Runs a block action at a position offset from the current one.

Type ID: apoli:offset

Fields

FieldTypeDefaultDescription
actionBlock Action TyperequiredThe action to run at the offset position.
xInteger0The offset on the X axis.
yInteger0The offset on the Y axis.
zInteger0The offset on the Z axis.

Examples

"block_action": {
    "type": "apoli:offset",
    "action": {
        "type": "apoli:add_block",
        "block": "minecraft:gravel"
    },
    "y": 1
}

This runs apoli:add_block one block above the original position.