{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:display_context",
    "cases": [
      {
        "when": [
          "gui"
        ],
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/spyglass"
        }
      },
      {
        "when": [
          "firstperson_righthand",
          "firstperson_lefthand",
          "thirdperson_righthand",
          "thirdperson_lefthand"
        ],
        "model": {
          "type": "minecraft:condition",
          "property": "minecraft:has_component",
          "component": "minecraft:enchantments",
          "ignore_default": true,
          "on_true": {
            "type": "minecraft:model",
            "model": "minecraft:item/spyglass/e_spyglass_in_hand"
          },
          "on_false": {
            "type": "minecraft:model",
            "model": "minecraft:item/spyglass_in_hand"
          }
        }
      }
    ],
    "fallback": {
      "type": "minecraft:condition",
      "property": "minecraft:has_component",
      "component": "minecraft:enchantments",
      "ignore_default": true,
      "on_true": {
        "type": "minecraft:model",
        "model": "minecraft:item/spyglass/e_spyglass_sprite"
      },
      "on_false": {
        "type": "minecraft:model",
        "model": "minecraft:item/spyglass"
      }
    }
  }
}