Time airborne
origins-powerful-powers:time_airborneentity conditionplayers onlytracked
Ticks since the player was last on the ground. 0 while on the ground.
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | |
compare_to | Integer | required | ticks |
- Anything that isn't "on the ground" counts: jumping, falling, swimming, flying and gliding.
Example: glider.
{
"type": "origins:action_over_time",
"interval": 1,
"condition": {
"type": "origins-powerful-powers:time_airborne",
"comparison": ">",
"compare_to": 60
},
"entity_action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:slow_falling",
"duration": 10,
"amplifier": 0
}
}
}After 3 seconds in the air, you fall slowly.
Attribute: time_airborne