Health (Entity Condition Type)

Checks the current health value of the entity.

Checks the current health value of the entity.

Type ID: apoli:health

Fields

FieldTypeDefaultDescription
comparisonComparisonDetermines how the current health of the entity should be compared to the specified value.
compare_toFloatThe value at which the current health of the entity will be compared to.

Examples

"condition": {
    "type": "apoli:health",
    "comparison": "<",
    "compare_to": 20
}

This example will check if the entity’s health is less than 10 hearts (or 20 health points).