Attacker
Checks whether the condition has an attacker, and optionally whether the attacker fulfills a specified Entity Condition.
Type ID: apoli:attacker
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
entity_condition |
Entity Condition | optional | If set, the attacking entity must fulfill the provided entity condition in order for this condition to evaluate to true. |
Example
"damage_condition": {
"type": "apoli:attacker",
"entity_condition": {
"type": "apoli:entity_type",
"entity_type": "minecraft:zombie"
}
}
This example checks if the attacker is a Zombie using the apoli:entity_type entity condition type.