Skip to main content

On Block (Entity Condition Type)

Checks whether the entity is standing on the ground, optionally on a block that passes a block condition.

Type ID: apoli:on_block

Fields

FieldTypeDefaultDescription
block_conditionBlock Condition TypeoptionalThe block under the entity's feet must pass this condition. Without it, the condition only checks that the entity is on the ground.

Examples

"condition": {
    "type": "apoli:on_block"
}

This checks whether the entity is on the ground.

"condition": {
    "type": "apoli:on_block",
    "block_condition": {
        "type": "apoli:block",
        "block": "minecraft:grass_block"
    }
}

This checks whether the entity is standing on a grass block.