{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "damage": {
          "type": {
            "direct_entity": {
              "type": "minecraft:snowball"
            }
          }
        }
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/dealdmg/coldball"
  }
}
