Attacker (Damage Condition Type)

Checks whether the damage source is from an entity.

Checks whether the damage source is from an entity.

Type ID: apoli:attacker

Fields

FieldTypeDefaultDescription
entity_conditionEntity Condition TypeoptionalIf set, the attacker entity must fulfill the provided entity condition type in order for this condition to evaluate to true.

Examples

"damage_condition": {
    "type": "apoli:attacker",
    "entity_condition": {
        "type": "apoli:entity_type",
        "entity_type": "minecraft:zombie"
    }
}

This example will check if the attacker is a Zombie entity, with the apoli:entity_type.