On Block (Entity Condition Type)
Checks if a block underneath the entity's feet fulfills the specified Block Condition Type.
Checks if a block underneath the entity’s feet fulfills the specified Block Condition Type.
Type ID: apoli:on_block
Fields
| Field | Type | Default | Description |
|---|---|---|---|
block_condition | Block Condition Type | optional | If specified, the condition will evaluate to true if the block underneath the entity’s feet fulfills the specified block condition type. Otherwise, only check if the entity is on the ground. |
Examples
"condition": {
"type": "apoli:on_block"
} This example will check if the entity is currently on the ground.
"condition": {
"type": "apoli:on_block",
"block_condition": {
"type": "apoli:block",
"block": "minecraft:grass_block"
}
} This example will check if the entity is currently on a Grass Block.