{
  "criteria": {
    "criterion_one": {
      "trigger": "minecraft:player_killed_entity",
      "conditions": {
        "killing_blow": {
          "direct_entity": {
            "type": "minecraft:player",
            "equipment": {
              "mainhand": {
                "components": {
                  "minecraft:enchantments": {
                    "vb:leeching": 1
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "rewards": {
    "function": "vb:trigger/leeching"
  }
}