{
  "criteria": {
    "trade": {
      "trigger": "minecraft:villager_trade",
      "conditions": {
        "villager": {
          "nbt": "{VillagerData:{profession:\"minecraft:librarian\"}}",
          "location": {
            "structures": "#nova_structures:offers_trades_port"
          }
        }
      }
    }
  },
  "rewards": {
    "function": "nova_structures:librarians/choose_dnt_librarian_port"
  }
}