{
  "parent": "magical_addons:---/entity/root",
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type": "minecraft:husk",
              "nbt": "{Tags:[maddons.automaton]}"
            }
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "magical_addons:entity/automaton/hit"
  }
}