Skip to main content

Air (Entity Condition Type)

Compares how much air (breath) the entity has left, in ticks, with a number.

Type ID: apoli:air

note

Players and most mobs have a maximum of 300 ticks of air, dolphins have 4800 and axolotls have 6000. One bubble is the maximum divided by 10 (max / 10 = value).

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the entity's air, in ticks, is compared with compare_to.
compare_toIntegerrequiredThe number the air is compared with.

Examples

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

This checks whether the entity has no air left.