{
  "criteria": {
    "hit_entity": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "damage": {
          "type": {
            "is_direct": true
          }
        },
        "entity": {
          "type": "minecraft:donkey",
          "team": "overly_realistic.animal_corpses"
        }
      }
    }
  },
  "requirements": [
    [
      "hit_entity"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:animals/corpse_hit/donkey/player_hit_corpse"
  }
}