In Block (Entity Condition Type)
Checks whether a block that passes a block condition overlaps the entity's feet.
Type ID: apoli:in_block
Fields
| Field | Type | Default | Description |
|---|---|---|---|
block_condition | Block Condition Type | required | The condition the block at the entity's feet must pass. |
Examples
"condition": {
"type": "apoli:in_block",
"block_condition": {
"type": "apoli:block",
"block": "minecraft:grass"
}
}This checks whether grass (the plant) overlaps the entity's feet.
"condition": {
"type": "apoli:in_block",
"block_condition": {
"type": "apoli:and",
"conditions": [
{
"type": "apoli:block",
"block": "minecraft:sand"
},
{
"type": "apoli:offset",
"condition": {
"type": "apoli:block",
"block": "minecraft:sand"
},
"y": 1
}
]
}
}This checks whether there is sand at the entity's feet and at its eyes, which means it is buried in sand.