{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "taken": {
            "min": 1
          },
          "blocked": false,
          "type": {
            "direct_entity": {
              "type": "minecraft:player"
            }
          }
        }
      }
    }
  },
  "rewards": {
    "function": "custom_items:armor/player_tookdamage"
  }
}
