{
  "parent": "minecraft:adventure/spyglass_at_ghast",
  "criteria": {
    "spyglass_at_dragon": {
      "conditions": {
        "item": {
          "items": [
            "minecraft:spyglass"
          ]
        },
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type_specific": {
                "type": "player",
                "looking_at": {
                  "type": "minecraft:enderman"
                }
              }
            }
          }
        ]
      },
      "trigger": "minecraft:using_item"
    }
  },
  "display": {
    "announce_to_chat": true,
    "description": {
      "translate": "advancements.adventure.spyglass_at_dragon.description"
    },
    "frame": "task",
    "hidden": false,
    "icon": {
      "item": "minecraft:spyglass"
    },
    "show_toast": true,
    "title": {
      "translate": "advancements.adventure.spyglass_at_dragon.title"
    }
  },
  "requirements": [
    [
      "spyglass_at_dragon"
    ]
  ],
  "sends_telemetry_event": false
}