Origins: Powerful Powers
» Entity conditions » Projectile age

Projectile age

origins-powerful-powers:projectile_ageentity condition

How many ticks the entity has existed since it was created or last loaded. It works on any entity and is meant for projectiles, such as how long an arrow has been flying.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toIntegerrequiredticks
  • The count isn't saved. It starts again at 0 when the entity is loaded from a chunk (and for a player, when they join).

Example: long-range arrows hurt you less.

json
{
  "type": "origins:modify_damage_taken",
  "damage_condition": {
    "type": "origins:projectile",
    "projectile_condition": {
      "type": "origins-powerful-powers:projectile_age",
      "comparison": ">=",
      "compare_to": 40
    }
  },
  "modifier": {
    "operation": "multiply_total_multiplicative",
    "value": -0.5
  }
}

Projectiles that were in flight for 2 seconds or more deal half damage to you.