Air

Entity Condition Type

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

Type ID: origins: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

Field Type Default Description
comparison Comparison Determines how the breath / air / bubble (in ticks) the entity has should be compared to the specified value.
compare_to Integer The value at which the breath / air / bubble (in ticks) the entity has will be compared to.

Examples

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

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