{
  "display": {
    "icon": {
      "id": "minecraft:tropical_fish"
    },
    "title": {
      "text": "You Are A Pirate",
      "color": "dark_aqua"
    },
    "description": {
      "text": "Find an Illager Corsair or an Illager Galley"
    },
    "frame": "task",
    "show_toast": true,
    "announce_to_chat": true,
    "hidden": false
  },
  "parent": "dungeons_arise:wda_root",
  "criteria": {
      "illager_corsair": {
          "trigger": "minecraft:location",
          "conditions": {
              "player": [
                  {
                      "condition": "minecraft:any_of",
                      "terms": [
                          {
                              "condition": "minecraft:entity_properties",
                              "entity": "this",
                              "predicate": {
                                  "location": {
                                      "structures": "dungeons_arise:illager_corsair"
                                  }
                              }
                          },
                          {
                              "condition": "minecraft:entity_properties",
                              "entity": "this",
                              "predicate": {
                                  "location": {
                                      "structures": "dungeons_arise:illager_galley"
                                  }
                              }
                          }
                      ]
                  },
                  {
                      "condition": "minecraft:inverted",
                      "term": {
                          "condition": "minecraft:entity_properties",
                          "entity": "this",
                          "predicate": {
                              "type_specific": {
                                  "type": "player",
                                  "gamemode": ["spectator"]
                              }
                          }
                      }
                  }
              ]
          }
      }		
  }
}
