{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "nbt": "{Tags:[nitDragonologyBuilt]}",
              "location": {
                "structure": "minecraft:end_city"
              }
            }
          }
        ],
        "items": [
          {
            "items": [
              "minecraft:dragon_head"
            ]
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "nitref:recurs/dragonology/earn_scales"
  }
}
