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.
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | |
compare_to | Integer | required | ticks |
- 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.
{
"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.