Skip to main content

Distance (Bi-Entity Condition Type)

Compares the distance between the actor and the target, in blocks, with a number.

Type ID: apoli:distance

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the distance is compared with compare_to.
compare_toFloatrequiredThe number the distance is compared with.

Examples

"bientity_condition": {
    "type": "apoli:distance",
    "comparison": "<=",
    "compare_to": 30
}

This checks whether the target is within 30 blocks of the actor.