Projectile (Damage Condition Type)
Checks whether the damage came from a projectile, optionally of a given entity type or one that passes an entity condition.
Type ID: apoli:projectile
Fields
| Field | Type | Default | Description |
|---|---|---|---|
projectile | Identifier | optional | The projectile must be of this entity type. |
projectile_condition | Entity Condition Type | optional | The projectile must pass this condition. |
Examples
"damage_condition": {
"type": "apoli:projectile",
"projectile": "minecraft:spectral_arrow"
}This checks whether the damage came from a spectral arrow.
"damage_condition": {
"type": "apoli:projectile",
"projectile_condition": {
"type": "apoli:and",
"conditions": [
{
"type": "apoli:entity_type",
"entity_type": "minecraft:arrow"
},
{
"type": "apoli:on_fire"
}
]
}
}This checks whether the damage came from a burning arrow.