{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "player": {
          "equipment": {
            "mainhand": {
              "items": "#minecraft:pickaxes"
            }
          }
        },
        "entity": {
          "nbt": "{Tags:[crysmerc,crystalmerchant,merchant_face]}"
        }
      }
    }
  },
  "rewards": {
    "function": "survivalplus:mobs/mineablemerchant"
  }
}