{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "player": {
          "equipment": {
            "mainhand": {
              "components": {
                "minecraft:custom_data": "{witchbroom:tag}",
                "minecraft:enchantments": {
                  "minecraft:sweeping_edge": 1
                }
              }
            }
          }
        }
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/witch/swing"
  }
}