Air
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 | How the breath / air / bubble bar (in ticks) should be compared to the specified value. | |
compare_to |
Integer | Which value the breath should 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.