{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:display_context",

    "cases": [
      {
        "when": ["gui", "ground", "fixed"],
        "model": {
          "type": "minecraft:select",
          "property": "minecraft:component",
          "component": "minecraft:stored_enchantments",

          "cases": [
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/aqua_affinity_1" },
              "when": [ { "minecraft:aqua_affinity": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/bane_of_arthropods_1" },
              "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/breach_1" },
              "when": [
                { "minecraft:breach": 1 },
                { "minecraft:breach": 2 },
                { "minecraft:breach": 3 },
                { "minecraft:breach": 4 },
                { "minecraft:breach": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/blast_protection_1" },
              "when": [
                { "minecraft:blast_protection": 1 },
                { "minecraft:blast_protection": 2 },
                { "minecraft:blast_protection": 3 },
                { "minecraft:blast_protection": 4 },
                { "minecraft:blast_protection": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/channeling_1" },
              "when": [ { "minecraft:channeling": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/binding_curse_1" },
              "when": [ { "minecraft:binding_curse": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/density_1" },
              "when": [
                { "minecraft:density": 1 },
                { "minecraft:density": 2 },
                { "minecraft:density": 3 },
                { "minecraft:density": 4 },
                { "minecraft:density": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/depth_strider_1" },
              "when": [
                { "minecraft:depth_strider": 1 },
                { "minecraft:depth_strider": 2 },
                { "minecraft:depth_strider": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/efficiency_1" },
              "when": [
                { "minecraft:efficiency": 1 },
                { "minecraft:efficiency": 2 },
                { "minecraft:efficiency": 3 },
                { "minecraft:efficiency": 4 },
                { "minecraft:efficiency": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/feather_falling_1" },
              "when": [
                { "minecraft:feather_falling": 1 },
                { "minecraft:feather_falling": 2 },
                { "minecraft:feather_falling": 3 },
                { "minecraft:feather_falling": 4 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/fire_aspect_1" },
              "when": [
                { "minecraft:fire_aspect": 1 },
                { "minecraft:fire_aspect": 2 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/fire_protection_1" },
              "when": [
                { "minecraft:fire_protection": 1 },
                { "minecraft:fire_protection": 2 },
                { "minecraft:fire_protection": 3 },
                { "minecraft:fire_protection": 4 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/flame_1" },
              "when": [ { "minecraft:flame": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/fortune_1" },
              "when": [
                { "minecraft:fortune": 1 },
                { "minecraft:fortune": 2 },
                { "minecraft:fortune": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/frost_walker_1" },
              "when": [
                { "minecraft:frost_walker": 1 },
                { "minecraft:frost_walker": 2 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/impaling_1" },
              "when": [
                { "minecraft:impaling": 1 },
                { "minecraft:impaling": 2 },
                { "minecraft:impaling": 3 },
                { "minecraft:impaling": 4 },
                { "minecraft:impaling": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/infinity_1" },
              "when": [ { "minecraft:infinity": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/knockback_1" },
              "when": [
                { "minecraft:knockback": 1 },
                { "minecraft:knockback": 2 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/looting_1" },
              "when": [
                { "minecraft:looting": 1 },
                { "minecraft:looting": 2 },
                { "minecraft:looting": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/loyalty_1" },
              "when": [
                { "minecraft:loyalty": 1 },
                { "minecraft:loyalty": 2 },
                { "minecraft:loyalty": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/luck_of_the_sea_1" },
              "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/lure_1" },
              "when": [
                { "minecraft:lure": 1 },
                { "minecraft:lure": 2 },
                { "minecraft:lure": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/mending_1" },
              "when": [ { "minecraft:mending": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/multishot_1" },
              "when": [ { "minecraft:multishot": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/piercing_1" },
              "when": [
                { "minecraft:piercing": 1 },
                { "minecraft:piercing": 2 },
                { "minecraft:piercing": 3 },
                { "minecraft:piercing": 4 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/power_1" },
              "when": [
                { "minecraft:power": 1 },
                { "minecraft:power": 2 },
                { "minecraft:power": 3 },
                { "minecraft:power": 4 },
                { "minecraft:power": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/projectile_protection_1" },
              "when": [
                { "minecraft:projectile_protection": 1 },
                { "minecraft:projectile_protection": 2 },
                { "minecraft:projectile_protection": 3 },
                { "minecraft:projectile_protection": 4 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/protection_1" },
              "when": [
                { "minecraft:protection": 1 },
                { "minecraft:protection": 2 },
                { "minecraft:protection": 3 },
                { "minecraft:protection": 4 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/punch_1" },
              "when": [
                { "minecraft:punch": 1 },
                { "minecraft:punch": 2 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/quick_charge_1" },
              "when": [
                { "minecraft:quick_charge": 1 },
                { "minecraft:quick_charge": 2 },
                { "minecraft:quick_charge": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/respiration_1" },
              "when": [
                { "minecraft:respiration": 1 },
                { "minecraft:respiration": 2 },
                { "minecraft:respiration": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/riptide_1" },
              "when": [
                { "minecraft:riptide": 1 },
                { "minecraft:riptide": 2 },
                { "minecraft:riptide": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/sharpness_1" },
              "when": [
                { "minecraft:sharpness": 1 },
                { "minecraft:sharpness": 2 },
                { "minecraft:sharpness": 3 },
                { "minecraft:sharpness": 4 },
                { "minecraft:sharpness": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/smite_1" },
              "when": [
                { "minecraft:smite": 1 },
                { "minecraft:smite": 2 },
                { "minecraft:smite": 3 },
                { "minecraft:smite": 4 },
                { "minecraft:smite": 5 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/silk_touch_1" },
              "when": [ { "minecraft:silk_touch": 1 } ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/soul_speed_1" },
              "when": [
                { "minecraft:soul_speed": 1 },
                { "minecraft:soul_speed": 2 },
                { "minecraft:soul_speed": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/sweeping_edge_1" },
              "when": [
                { "minecraft:sweeping_edge": 1 },
                { "minecraft:sweeping_edge": 2 },
                { "minecraft:sweeping_edge": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/swift_sneak_1" },
              "when": [
                { "minecraft:swift_sneak": 1 },
                { "minecraft:swift_sneak": 2 },
                { "minecraft:swift_sneak": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/thorns_1" },
              "when": [
                { "minecraft:thorns": 1 },
                { "minecraft:thorns": 2 },
                { "minecraft:thorns": 3 },
                { "minecraft:thorns": 4 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/unbreaking_1" },
              "when": [
                { "minecraft:unbreaking": 1 },
                { "minecraft:unbreaking": 2 },
                { "minecraft:unbreaking": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/wind_burst_1" },
              "when": [
                { "minecraft:wind_burst": 1 },
                { "minecraft:wind_burst": 2 },
                { "minecraft:wind_burst": 3 }
              ]
            },
            {
              "model": { "type": "minecraft:model", "model": "minecraft:item/vanishing_curse_1" },
              "when": [ { "minecraft:vanishing_curse": 1 } ]
            }
          ],

          "fallback": { "type": "minecraft:model", "model": "minecraft:item/.big_enchanted_book" }
        }
      }
    ],

    "fallback": { "type": "minecraft:model", "model": "minecraft:item/enchanted_book_hand" }
  }
}
