Attacker (Damage Condition Type)
Checks whether the damage came from an entity, optionally one that passes an entity condition.
Type ID: apoli:attacker
Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity_condition | Entity Condition Type | optional | The attacker must pass this condition. |
Examples
"damage_condition": {
"type": "apoli:attacker",
"entity_condition": {
"type": "apoli:entity_type",
"entity_type": "minecraft:zombie"
}
}This checks whether the attacker is a zombie, using apoli:entity_type.