{
  "model": {
    "type": "minecraft:select",
    "cases": [
      {
        "model": {
          "type": "minecraft:composite",
          "models": [
            {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:custom_model_data",
              "index": 0,
              "entries": [
                {
                  "threshold": 0,
                  "model": {
                    "type": "minecraft:model",
                    "model": "overlyrealistic:item/modular_helmet_worn/iron_helmet/layer_0_0"
                  }
                },
                {
                  "threshold": 1,
                  "model": {
                    "type": "minecraft:model",
                    "model": "overlyrealistic:item/modular_helmet_worn/iron_helmet/layer_0_1"
                  }
                },
                {
                  "threshold": 2,
                  "model": {
                    "type": "minecraft:model",
                    "model": "overlyrealistic:item/modular_helmet_worn/iron_helmet/layer_0_2"
                  }
                }
              ],
              "fallback": {
                "type": "model",
                "model": "overlyrealistic:item/armor_pieces/empty"
              }
            },
            {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:custom_model_data",
              "index": 1,
              "entries": [
                {
                  "threshold": 1,
                  "model": {
                    "type": "minecraft:model",
                    "model": "overlyrealistic:item/modular_helmet_worn/helmet_horns"
                  }
                }
              ],
              "fallback": {
                "type": "model",
                "model": "overlyrealistic:item/armor_pieces/empty"
              }
            },
            {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:custom_model_data",
              "index": 2,
              "entries": [
                {
                  "threshold": 1,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "white"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 2,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "light_gray"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 3,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "gray"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 4,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "black"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 5,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "brown"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 6,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "red"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 7,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "orange"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 8,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "yellow"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 9,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "lime"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 10,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "green"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 11,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "cyan"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 12,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "light_blue"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 13,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "blue"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 14,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "purple"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 15,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "magenta"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                },
                {
                  "threshold": 16,
                  "model": {
                    "type": "minecraft:special",
                    "base": "minecraft:item/template_banner",
                    "model": {
                      "type": "minecraft:banner",
                      "color": "pink"
                    },
                    "transformation": {
                      "left_rotation": [
                        0.0,
                        -0.0,
                        0.0,
                        1.0
                      ],
                      "right_rotation": [
                        0.0,
                        0.0,
                        0.0,
                        1.0
                      ],
                      "scale": [
                        0.6666667,
                        -0.6666667,
                        -0.6666667
                      ],
                      "translation": [
                        0.5,
                        0.15,
                        0.8
                      ]
                    }
                  }
                }
              ],
              "fallback": {
                "type": "model",
                "model": "overlyrealistic:item/armor_pieces/empty"
              }
            }
          ]
        },
        "when": [
          "head"
        ]
      }
    ],
    "fallback": {
      "type": "minecraft:composite",
      "models": [
        {
          "type": "minecraft:range_dispatch",
          "property": "minecraft:custom_model_data",
          "index": 0,
          "entries": [
            {
              "threshold": 0,
              "model": {
                "type": "minecraft:model",
                "model": "overlyrealistic:item/armor_pieces/iron_helmet/base_0"
              }
            },
            {
              "threshold": 1,
              "model": {
                "type": "minecraft:model",
                "model": "overlyrealistic:item/armor_pieces/iron_helmet/base_1"
              }
            },
            {
              "threshold": 2,
              "model": {
                "type": "minecraft:model",
                "model": "overlyrealistic:item/armor_pieces/iron_helmet/base_2"
              }
            }
          ],
          "fallback": {
            "type": "model",
            "model": "minecraft:item/iron_helmet"
          }
        },
        {
          "type": "minecraft:range_dispatch",
          "property": "minecraft:custom_model_data",
          "index": 1,
          "entries": [
            {
              "threshold": 1,
              "model": {
                "type": "minecraft:model",
                "model": "overlyrealistic:item/armor_pieces/iron_helmet/horns"
              }
            }
          ],
          "fallback": {
            "type": "model",
            "model": "overlyrealistic:item/armor_pieces/empty"
          }
        }
      ]
    },
    "property": "minecraft:display_context"
  }
}