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. |
projectile_condition |
Entity Condition Type | optional | If set, the check will only pass if the projectile entity fulfills this condition. |
Examples
"damage_condition": {
"type": "origins:projectile",
"projectile": "minecraft:spectral_arrow"
}
This example will check if the damage source is a Spectral Arrow projectile entity.
"damage_condition": {
"type": "origins:projectile",
"projectile_condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:entity_type",
"entity_type": "minecraft:arrow"
},
{
"type": "origins:on_fire"
}
]
}
}
This example will check if the damage source is a burning arrow.