Projectile
Checks whether the damage source was projectile damage, and optionally the type of projectile it was (if specified).
Type ID: origins:projectile
Fields
| Field | Type | Default | Description |
|---|---|---|---|
projectile |
Identifier | optional | If set, the check will only pass if the projectile was of an entity type with the specified namespace and ID. |
Examples
"damage_condition": {
"type": "origins:projectile",
"projectile": "minecraft:spectral_arrow"
}
This example will check if the damage source is a Spectral Arrow projectile entity.