Skip to main content

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

FieldTypeDefaultDescription
projectileIdentifieroptionalThe projectile must be of this entity type.
projectile_conditionEntity Condition TypeoptionalThe 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.