Has attack target
origins-powerful-powers:has_attack_targetentity condition
True when the entity is a mob that currently has any attack target.
No fields.
- False for anything that isn't a mob, such as players.
- It covers both kinds of mob AI: goal-based mobs like zombies and skeletons (their target), and brain-based mobs like piglins, hoglins and wardens (their attack-target memory).
- To check whether a mob is targeting a specific entity, use Origins'
origins:attack_targetbi-entity condition.
Example:
{
"type": "origins:modify_damage_dealt",
"target_condition": {
"type": "origins-powerful-powers:has_attack_target"
},
"modifier": {
"operation": "multiply_total_multiplicative",
"value": 0.25
}
}Your hits deal 25% more to mobs that are busy hunting someone.