{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:all_of",
            "terms": [
              {
                "condition": "minecraft:reference",
                "name": "survivalplus:hmmerchant"
              },
              {
                "condition": "minecraft:entity_properties",
                "entity": "this",
                "predicate": {
                  "type": "minecraft:villager",
                  "nbt": "{Tags:[hmmerchant]}"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "survivalplus:merchants/interactmechanic"
  }
}