Origins: Powerful Powers
» Entity conditions » Time airborne

Time airborne

origins-powerful-powers:time_airborneentity conditionplayers onlytracked

Ticks since the player was last on the ground. 0 while on the ground.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toIntegerrequiredticks
  • Anything that isn't "on the ground" counts: jumping, falling, swimming, flying and gliding.

Example: glider.

json
{
  "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