{
  "parent": "minecraft:adventure/spyglass_at_parrot",
  "criteria": {
    "spyglass_at_ghast": {
      "conditions": {
        "item": {
          "items": "minecraft:spyglass"
        },
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type_specific": {
                "type": "minecraft:player",
                "looking_at": {
                  "type": "minecraft:ghast"
                }
              }
            }
          }
        ]
      },
      "trigger": "minecraft:using_item"
    }
  },
  "display": {
    "description": {
      "translate": "advancements.adventure.spyglass_at_ghast.description"
    },
    "icon": {
      "count": 1,
      "id": "minecraft:spyglass"
    },
    "title": {
      "translate": "advancements.adventure.spyglass_at_ghast.title"
    }
  },
  "requirements": [
    [
      "spyglass_at_ghast"
    ]
  ],
  "sends_telemetry_event": true
}