Air (Entity Condition Type)

Checks how much breath / air / bubble the entity has at the moment.

Checks how much breath / air / bubble the entity has at the moment.

Type ID: apoli:air

!!! note

Players (and most mobs) have a max value of 300 ticks, whilst dolphins have a max value of 4800 ticks. Axolotls, on the other hand, have a max value of 6000 ticks.

In order to get the value of a single bubble, you can divide the max value by 10. (max / 10 = value)

Fields

FieldTypeDefaultDescription
comparisonComparisonDetermines how the breath / air / bubble (in ticks) the entity has should be compared to the specified value.
compare_toIntegerThe value at which the breath / air / bubble (in ticks) the entity has will be compared to.

Examples

"condition": {
    "type": "apoli:air",
    "comparison": "==",
    "compare_to": 0
}

This example will check if the player has no breath / air / bubbles left.