Add "on each attack" action. Example usage: "on each attack on cow" or "on each attack on minecart" or "on each attack on player"
Add preliminary "on attack" action that triggers when the NPC starts attacking a target. (as opposed to triggering on every attack)
Make "on attack" as functional as "on each attack".