Attacker

Damage Condition.

Checks whether the condition has an attacker, and optionally whether the attacker fulfills a specified Entity Condition.

Type ID: origins: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": "origins:attacker",
    "entity_condition": {
        "type": "origins:entity_type",
        "entity_type": "minecraft:zombie"
    }
}

This example checks if the attacker is a Zombie using the origins:entity_type entity condition type.