In Block Anywhere (Entity Condition Type)

Checks how many blocks are overlapping with the entity's eyes or feet.

Checks how many blocks are overlapping with the entity’s eyes or feet.

Type ID: apoli:in_block_anywhere

Fields

FieldTypeDefaultDescription
block_conditionBlock Condition TypeThe block condition type which blocks need to fulfill in order to count for this condition.
comparisonComparison">="Determines how the amount of blocks which overlap and fulfill block_condition should be compared to the specified value.
compare_toInteger1The value at which the amount of blocks which overlap and fulfill block_condition will be compared to.

Examples

"condition": {
    "type": "apoli:in_block_anywhere",
    "block_condition": {
        "type": "apoli:in_tag",
        "tag": "minecraft:flowers"
    },
    "comparison": ">",
    "compare_to": 1
}

This example will check if the entity is currently inside a two-block tall foliage block that belongs in the #minecraft:flowers (data\minecraft\tags\blocks\flowers.json) block tag. An example is the rose bush block.