Attacker
Checks whether the damage source is from an entity.
Type ID: origins:attacker
Fields
Field | Type | Default | Description |
---|---|---|---|
entity_condition |
Entity Condition Type | optional | If set, the attacker entity must fulfill the provided entity condition type in order for this condition to evaluate to true. |
Examples
"damage_condition": {
"type": "origins:attacker",
"entity_condition": {
"type": "origins:entity_type",
"entity_type": "minecraft:zombie"
}
}
This example will check if the attacker is a Zombie entity, with the Entity Type (Entity Condition Type)