{
  "display": {
    "icon": {
      "id": "minecraft:carved_pumpkin",
      "components":{
              "custom_model_data":1009
      }
    },
    "title": {"translate":"adv.end.title"},
    "description": {"translate":"adv.end.description"},
    "frame": "challenge",
    "show_toast": true,
    "announce_to_chat": true,
    "hidden": true
  },
  "parent": "ws:workersimulator/newhorizons",
  "criteria": {
    "1": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
            "components":{
              "custom_data":"{builder:1}"
          }
        }
        ]
      }
    },
    "2": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{chef:1}"
          }
        }
        ]
      }
    },
    "3": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{producer:1}"
          }
        }
        ]
      }
    },
    "4": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{fisherman:1}"
          }
        }
        ]
      }
    },
    "5": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{scavenger:1}"
          }
        }
        ]
      }
    },
    "6": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{farmer:1}"
          }
        }
        ]
      }
    },
    "7": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{maid:1}"
          }
        }
        ]
      }
    },
    "8": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{miner:1}"
          }
        }
        ]
      }
    },
    "9": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{banker:1}"
          }
        }
        ]
      }
    },
    "10": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
              "components":{
                "custom_data": "{scientist:1}"
          }
        }
        ]
      }
    }
  }
}
