{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:display_context",
    "cases": [
      {
        "when": [
          "gui",
          "ground",
          "on_shelf",
          "fixed",
          "firstperson_righthand",
          "thirdperson_righthand"
        ],
        "model": {
          "type": "minecraft:select",
          "property": "minecraft:component",
          "component": "minecraft:stored_enchantments",
          "cases": [
            {
              "when": {
                "minecraft:aqua_affinity": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/aqua_affinity"
              }
            },
            {
              "when": {
                "minecraft:bane_of_arthropods": 1,
                "minecraft:bane_of_arthropods": 2,
                "minecraft:bane_of_arthropods": 3,
                "minecraft:bane_of_arthropods": 4,
                "minecraft:bane_of_arthropods": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/bane_of_arthropods"
              }
            },
            {
              "when": {
                "minecraft:breach": 1,
                "minecraft:breach": 2,
                "minecraft:breach": 3,
                "minecraft:breach": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/breach"
              }
            },
            {
              "when": {
                "minecraft:blast_protection": 1,
                "minecraft:blast_protection": 2,
                "minecraft:blast_protection": 3,
                "minecraft:blast_protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/blast_protection"
              }
            },
            {
              "when": {
                "minecraft:channeling": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/channeling"
              }
            },
            {
              "when": {
                "minecraft:binding_curse": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/binding_curse"
              }
            },
            {
              "when": {
                "minecraft:density": 1,
                "minecraft:density": 2,
                "minecraft:density": 3,
                "minecraft:density": 4,
                "minecraft:density": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/density"
              }
            },
            {
              "when": {
                "minecraft:depth_strider": 1,
                "minecraft:depth_strider": 2,
                "minecraft:depth_strider": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/depth_strider"
              }
            },
            {
              "when": {
                "minecraft:efficiency": 1,
                "minecraft:efficiency": 2,
                "minecraft:efficiency": 3,
                "minecraft:efficiency": 4,
                "minecraft:efficiency": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/efficiency"
              }
            },
            {
              "when": {
                "minecraft:feather_falling": 1,
                "minecraft:feather_falling": 2,
                "minecraft:feather_falling": 3,
                "minecraft:feather_falling": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/feather_falling"
              }
            },
            {
              "when": {
                "minecraft:fire_aspect": 1,
                "minecraft:fire_aspect": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/fire_aspect"
              }
            },
            {
              "when": {
                "minecraft:fire_protection": 1,
                "minecraft:fire_protection": 2,
                "minecraft:fire_protection": 3,
                "minecraft:fire_protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/fire_protection"
              }
            },
            {
              "when": {
                "minecraft:flame": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/flame"
              }
            },
            {
              "when": {
                "minecraft:fortune": 1,
                "minecraft:fortune": 2,
                "minecraft:fortune": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/fortune"
              }
            },
            {
              "when": {
                "minecraft:frost_walker": 1,
                "minecraft:frost_walker": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/frost_walker"
              }
            },
            {
              "when": {
                "minecraft:impaling": 1,
                "minecraft:impaling": 2,
                "minecraft:impaling": 3,
                "minecraft:impaling": 4,
                "minecraft:impaling": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/impaling"
              }
            },
            {
              "when": {
                "minecraft:infinity": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/infinity"
              }
            },
            {
              "when": {
                "minecraft:knockback": 1,
                "minecraft:knockback": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/knockback"
              }
            },
            {
              "when": {
                "minecraft:looting": 1,
                "minecraft:looting": 2,
                "minecraft:looting": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/looting"
              }
            },
            {
              "when": {
                "minecraft:loyalty": 1,
                "minecraft:loyalty": 2,
                "minecraft:loyalty": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/loyalty"
              }
            },
            {
              "when": {
                "minecraft:luck_of_the_sea": 1,
                "minecraft:luck_of_the_sea": 2,
                "minecraft:luck_of_the_sea": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/luck_of_the_sea"
              }
            },
			{
              "when": {
                "minecraft:lunge": 1,
                "minecraft:lunge": 2,
                "minecraft:lunge": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/lunge"
              }
            },
            {
              "when": {
                "minecraft:lure": 1,
                "minecraft:lure": 2,
                "minecraft:lure": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/lure"
              }
            },
            {
              "when": {
                "minecraft:mending": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/mending"
              }
            },
            {
              "when": {
                "minecraft:multishot": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/multishot"
              }
            },
            {
              "when": {
                "minecraft:piercing": 1,
                "minecraft:piercing": 2,
                "minecraft:piercing": 3,
                "minecraft:piercing": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/piercing"
              }
            },
            {
              "when": {
                "minecraft:power": 1,
                "minecraft:power": 2,
                "minecraft:power": 3,
                "minecraft:power": 4,
                "minecraft:power": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/power"
              }
            },
            {
              "when": {
                "minecraft:projectile_protection": 1,
                "minecraft:projectile_protection": 2,
                "minecraft:projectile_protection": 3,
                "minecraft:projectile_protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/projectile_protection"
              }
            },
            {
              "when": {
                "minecraft:protection": 1,
                "minecraft:protection": 2,
                "minecraft:protection": 3,
                "minecraft:protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/protection"
              }
            },
            {
              "when": {
                "minecraft:punch": 1,
                "minecraft:punch": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/punch"
              }
            },
            {
              "when": {
                "minecraft:quick_charge": 1,
                "minecraft:quick_charge": 2,
                "minecraft:quick_charge": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/quickcharge"
              }
            },
            {
              "when": {
                "minecraft:respiration": 1,
                "minecraft:respiration": 2,
                "minecraft:respiration": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/respiration"
              }
            },
            {
              "when": {
                "minecraft:riptide": 1,
                "minecraft:riptide": 2,
                "minecraft:riptide": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/riptide"
              }
            },
            {
              "when": {
                "minecraft:sharpness": 1,
                "minecraft:sharpness": 2,
                "minecraft:sharpness": 3,
                "minecraft:sharpness": 4,
                "minecraft:sharpness": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/sharpness"
              }
            },
            {
              "when": {
                "minecraft:silk_touch": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/silk_touch"
              }
            },
            {
              "when": {
                "minecraft:smite": 1,
                "minecraft:smite": 2,
                "minecraft:smite": 3,
                "minecraft:smite": 4,
                "minecraft:smite": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/smite"
              }
            },
            {
              "when": {
                "minecraft:soul_speed": 1,
                "minecraft:soul_speed": 2,
                "minecraft:soul_speed": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/soul_speed"
              }
            },
            {
              "when": {
                "minecraft:sweeping_edge": 1,
                "minecraft:sweeping_edge": 2,
                "minecraft:sweeping_edge": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/sweeping_edge"
              }
            },
            {
              "when": {
                "minecraft:swift_sneak": 1,
                "minecraft:swift_sneak": 2,
                "minecraft:swift_sneak": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/swift_sneak"
              }
            },
            {
              "when": {
                "minecraft:thorns": 1,
                "minecraft:thorns": 2,
                "minecraft:thorns": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/thorns"
              }
            },
            {
              "when": {
                "minecraft:vanishing_curse": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/vanishing_curse"
              }
            },
            {
              "when": {
                "minecraft:unbreaking": 1,
                "minecraft:unbreaking": 2,
                "minecraft:unbreaking": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/unbreaking"
              }
            },
            {
              "when": {
                "minecraft:wind_burst": 1,
                "minecraft:wind_burst": 2,
                "minecraft:wind_burst": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/wind_burst"
              }
            }
          ],
          "fallback": {
            "type": "minecraft:model",
            "model": "minecraft:item/enchanted_book"
          }
        }
      },
      {
        "when": [
          "firstperson_lefthand",
          "thirdperson_lefthand"
        ],
        "model": {
          "type": "minecraft:select",
          "property": "minecraft:component",
          "component": "minecraft:stored_enchantments",
          "cases": [
            {
              "when": {
                "minecraft:aqua_affinity": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/aqua_affinity_open"
              }
            },
            {
              "when": {
                "minecraft:bane_of_arthropods": 1,
                "minecraft:bane_of_arthropods": 2,
                "minecraft:bane_of_arthropods": 3,
                "minecraft:bane_of_arthropods": 4,
                "minecraft:bane_of_arthropods": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/bane_of_arthropods_open"
              }
            },
            {
              "when": {
                "minecraft:breach": 1,
                "minecraft:breach": 2,
                "minecraft:breach": 3,
                "minecraft:breach": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/breach_open"
              }
            },
            {
              "when": {
                "minecraft:blast_protection": 1,
                "minecraft:blast_protection": 2,
                "minecraft:blast_protection": 3,
                "minecraft:blast_protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/blast_protection_open"
              }
            },
            {
              "when": {
                "minecraft:channeling": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/channeling_open"
              }
            },
            {
              "when": {
                "minecraft:binding_curse": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/binding_curse_open"
              }
            },
            {
              "when": {
                "minecraft:density": 1,
                "minecraft:density": 2,
                "minecraft:density": 3,
                "minecraft:density": 4,
                "minecraft:density": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/density_open"
              }
            },
            {
              "when": {
                "minecraft:depth_strider": 1,
                "minecraft:depth_strider": 2,
                "minecraft:depth_strider": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/depth_strider_open"
              }
            },
            {
              "when": {
                "minecraft:efficiency": 1,
                "minecraft:efficiency": 2,
                "minecraft:efficiency": 3,
                "minecraft:efficiency": 4,
                "minecraft:efficiency": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/efficiency_open"
              }
            },
            {
              "when": {
                "minecraft:feather_falling": 1,
                "minecraft:feather_falling": 2,
                "minecraft:feather_falling": 3,
                "minecraft:feather_falling": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/feather_falling_open"
              }
            },
            {
              "when": {
                "minecraft:fire_aspect": 1,
                "minecraft:fire_aspect": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/fire_aspect_open"
              }
            },
            {
              "when": {
                "minecraft:fire_protection": 1,
                "minecraft:fire_protection": 2,
                "minecraft:fire_protection": 3,
                "minecraft:fire_protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/fire_protection_open"
              }
            },
            {
              "when": {
                "minecraft:flame": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/flame_open"
              }
            },
            {
              "when": {
                "minecraft:fortune": 1,
                "minecraft:fortune": 2,
                "minecraft:fortune": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/fortune_open"
              }
            },
            {
              "when": {
                "minecraft:frost_walker": 1,
                "minecraft:frost_walker": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/frost_walker_open"
              }
            },
            {
              "when": {
                "minecraft:impaling": 1,
                "minecraft:impaling": 2,
                "minecraft:impaling": 3,
                "minecraft:impaling": 4,
                "minecraft:impaling": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/impaling_open"
              }
            },
            {
              "when": {
                "minecraft:infinity": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/infinity_open"
              }
            },
            {
              "when": {
                "minecraft:knockback": 1,
                "minecraft:knockback": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/knockback_open"
              }
            },
            {
              "when": {
                "minecraft:looting": 1,
                "minecraft:looting": 2,
                "minecraft:looting": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/looting_open"
              }
            },
            {
              "when": {
                "minecraft:loyalty": 1,
                "minecraft:loyalty": 2,
                "minecraft:loyalty": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/loyalty_open"
              }
            },
            {
              "when": {
                "minecraft:luck_of_the_sea": 1,
                "minecraft:luck_of_the_sea": 2,
                "minecraft:luck_of_the_sea": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/luck_of_the_sea_open"
              }
            },
            {
              "when": {
                "minecraft:lunge": 1,
                "minecraft:lunge": 2,
                "minecraft:lunge": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/lunge_open"
              }
            },
            {
              "when": {
                "minecraft:lure": 1,
                "minecraft:lure": 2,
                "minecraft:lure": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/lure_open"
              }
            },
            {
              "when": {
                "minecraft:mending": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/mending_open"
              }
            },
            {
              "when": {
                "minecraft:multishot": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/multishot_open"
              }
            },
            {
              "when": {
                "minecraft:piercing": 1,
                "minecraft:piercing": 2,
                "minecraft:piercing": 3,
                "minecraft:piercing": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/piercing_open"
              }
            },
            {
              "when": {
                "minecraft:power": 1,
                "minecraft:power": 2,
                "minecraft:power": 3,
                "minecraft:power": 4,
                "minecraft:power": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/power_open"
              }
            },
            {
              "when": {
                "minecraft:projectile_protection": 1,
                "minecraft:projectile_protection": 2,
                "minecraft:projectile_protection": 3,
                "minecraft:projectile_protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/projectile_protection_open"
              }
            },
            {
              "when": {
                "minecraft:protection": 1,
                "minecraft:protection": 2,
                "minecraft:protection": 3,
                "minecraft:protection": 4
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/protection_open"
              }
            },
            {
              "when": {
                "minecraft:punch": 1,
                "minecraft:punch": 2
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/punch_open"
              }
            },
            {
              "when": {
                "minecraft:quick_charge": 1,
                "minecraft:quick_charge": 2,
                "minecraft:quick_charge": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/quickcharge_open"
              }
            },
            {
              "when": {
                "minecraft:respiration": 1,
                "minecraft:respiration": 2,
                "minecraft:respiration": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/respiration_open"
              }
            },
            {
              "when": {
                "minecraft:riptide": 1,
                "minecraft:riptide": 2,
                "minecraft:riptide": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/riptide_open"
              }
            },
            {
              "when": {
                "minecraft:sharpness": 1,
                "minecraft:sharpness": 2,
                "minecraft:sharpness": 3,
                "minecraft:sharpness": 4,
                "minecraft:sharpness": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/sharpness_open"
              }
            },
            {
              "when": {
                "minecraft:silk_touch": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/silk_touch_open"
              }
            },
            {
              "when": {
                "minecraft:smite": 1,
                "minecraft:smite": 2,
                "minecraft:smite": 3,
                "minecraft:smite": 4,
                "minecraft:smite": 5
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/smite_open"
              }
            },
            {
              "when": {
                "minecraft:soul_speed": 1,
                "minecraft:soul_speed": 2,
                "minecraft:soul_speed": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/soul_speed_open"
              }
            },
            {
              "when": {
                "minecraft:sweeping_edge": 1,
                "minecraft:sweeping_edge": 2,
                "minecraft:sweeping_edge": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/sweeping_edge_open"
              }
            },
            {
              "when": {
                "minecraft:swift_sneak": 1,
                "minecraft:swift_sneak": 2,
                "minecraft:swift_sneak": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/swift_sneak_open"
              }
            },
            {
              "when": {
                "minecraft:thorns": 1,
                "minecraft:thorns": 2,
                "minecraft:thorns": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/thorns_open"
              }
            },
            {
              "when": {
                "minecraft:vanishing_curse": 1
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/vanishing_curse_open"
              }
            },
            {
              "when": {
                "minecraft:unbreaking": 1,
                "minecraft:unbreaking": 2,
                "minecraft:unbreaking": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/unbreaking_open"
              }
            },
            {
              "when": {
                "minecraft:wind_burst": 1,
                "minecraft:wind_burst": 2,
                "minecraft:wind_burst": 3
              },
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_books/wind_burst_open"
              }
            }
          ],
          "fallback": {
            "type": "minecraft:model",
            "model": "minecraft:item/enchanted_book_open"
          }
        }
      }
    ],
    "fallback": {
      "type": "minecraft:model",
      "model": "minecraft:item/enchanted_book"
    }
  }
}