{
  "model": {
    "type": "minecraft:condition",
    "property": "minecraft:has_component",
    "component": "minecraft:enchantments",
    "ignore_default": true,
    "on_true": {
      "type": "minecraft:condition",
      "property": "minecraft:using_item",
      "on_false": {
        "type": "minecraft:composite",
        "models": [
          {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:damage",
            "entries": [
              {
                "threshold": 0,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow"
                }
              },
              {
                "threshold": 0.85,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_damaged0"
                }
              },
              {
                "threshold": 0.9,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_damaged1"
                }
              },
              {
                "threshold": 0.95,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_damaged2"
                }
              }
            ]
          },
          {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:damage",
            "entries": [
              {
                "threshold": 0,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bows/e_bow"
                }
              },
              {
                "threshold": 0.85,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/diminishing/bows/e_bow_02"
                }
              },
              {
                "threshold": 0.9,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/diminishing/bows/e_bow_03"
                }
              },
              {
                "threshold": 0.95,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/diminishing/bows/e_bow_04"
                }
              }
            ]
          }
        ]
      },
      "on_true": {
        "type": "minecraft:composite",
        "models": [
          {
            "type": "minecraft:range_dispatch",
            "entries": [
              {
                "model": {
                  "type": "minecraft:range_dispatch",
                  "property": "minecraft:damage",
                  "entries": [
                    {
                      "threshold": 0,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_1"
                      }
                    },
                    {
                      "threshold": 0.85,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_1_damaged0"
                      }
                    },
                    {
                      "threshold": 0.9,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_1_damaged1"
                      }
                    },
                    {
                      "threshold": 0.95,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_1_damaged2"
                      }
                    }
                  ]
                },
                "threshold": 0.65
              },
              {
                "model": {
                  "type": "minecraft:range_dispatch",
                  "property": "minecraft:damage",
                  "entries": [
                    {
                      "threshold": 0,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_2"
                      }
                    },
                    {
                      "threshold": 0.85,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_2_damaged0"
                      }
                    },
                    {
                      "threshold": 0.9,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_2_damaged1"
                      }
                    },
                    {
                      "threshold": 0.95,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bow_pulling_2_damaged2"
                      }
                    }
                  ]
                },
                "threshold": 0.9
              }
            ],
            "fallback": {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:damage",
              "entries": [
                {
                  "threshold": 0,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_pulling_0"
                  }
                },
                {
                  "threshold": 0.85,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_pulling_0_damaged0"
                  }
                },
                {
                  "threshold": 0.9,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_pulling_0_damaged1"
                  }
                },
                {
                  "threshold": 0.95,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_pulling_0_damaged2"
                  }
                }
              ]
            },
            "property": "minecraft:use_duration",
            "scale": 0.05
          },
          {
            "type": "minecraft:range_dispatch",
            "entries": [
              {
                "model": {
                  "type": "minecraft:range_dispatch",
                  "property": "minecraft:damage",
                  "entries": [
                    {
                      "threshold": 0,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bows/e_bow_pulling_1"
                      }
                    },
                    {
                      "threshold": 0.85,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/diminishing/bows/e_bow_pulling_1_02"
                      }
                    },
                    {
                      "threshold": 0.9,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/diminishing/bows/e_bow_pulling_1_03"
                      }
                    },
                    {
                      "threshold": 0.95,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/diminishing/bows/e_bow_pulling_1_04"
                      }
                    }
                  ]
                },
                "threshold": 0.65
              },
              {
                "model": {
                  "type": "minecraft:range_dispatch",
                  "property": "minecraft:damage",
                  "entries": [
                    {
                      "threshold": 0,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/bows/e_bow_pulling_2"
                      }
                    },
                    {
                      "threshold": 0.85,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/diminishing/bows/e_bow_pulling_2_02"
                      }
                    },
                    {
                      "threshold": 0.9,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/diminishing/bows/e_bow_pulling_2_03"
                      }
                    },
                    {
                      "threshold": 0.95,
                      "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/diminishing/bows/e_bow_pulling_2_04"
                      }
                    }
                  ]
                },
                "threshold": 0.9
              }
            ],
            "fallback": {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:damage",
              "entries": [
                {
                  "threshold": 0,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bows/e_bow_pulling_0"
                  }
                },
                {
                  "threshold": 0.85,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/diminishing/bows/e_bow_pulling_0_02"
                  }
                },
                {
                  "threshold": 0.9,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/diminishing/bows/e_bow_pulling_0_03"
                  }
                },
                {
                  "threshold": 0.95,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/diminishing/bows/e_bow_pulling_0_04"
                  }
                }
              ]
            },
            "property": "minecraft:use_duration",
            "scale": 0.05
          }
        ]
      }
    },
    "on_false": {
      "type": "minecraft:condition",
      "property": "minecraft:has_component",
      "component": "minecraft:enchantment_glint_override",
      "ignore_default": true,
      "on_true": {
        "type": "minecraft:condition",
        "property": "minecraft:using_item",
        "on_false": {
          "type": "minecraft:composite",
          "models": [
            {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:damage",
              "entries": [
                {
                  "threshold": 0,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow"
                  }
                },
                {
                  "threshold": 0.85,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_damaged0"
                  }
                },
                {
                  "threshold": 0.9,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_damaged1"
                  }
                },
                {
                  "threshold": 0.95,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bow_damaged2"
                  }
                }
              ]
            },
            {
              "type": "minecraft:range_dispatch",
              "property": "minecraft:damage",
              "entries": [
                {
                  "threshold": 0,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/bows/e_bow"
                  }
                },
                {
                  "threshold": 0.85,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/diminishing/bows/e_bow_02"
                  }
                },
                {
                  "threshold": 0.9,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/diminishing/bows/e_bow_03"
                  }
                },
                {
                  "threshold": 0.95,
                  "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/diminishing/bows/e_bow_04"
                  }
                }
              ]
            }
          ]
        },
        "on_true": {
          "type": "minecraft:composite",
          "models": [
            {
              "type": "minecraft:range_dispatch",
              "entries": [
                {
                  "model": {
                    "type": "minecraft:range_dispatch",
                    "property": "minecraft:damage",
                    "entries": [
                      {
                        "threshold": 0,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_1"
                        }
                      },
                      {
                        "threshold": 0.85,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_1_damaged0"
                        }
                      },
                      {
                        "threshold": 0.9,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_1_damaged1"
                        }
                      },
                      {
                        "threshold": 0.95,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_1_damaged2"
                        }
                      }
                    ]
                  },
                  "threshold": 0.65
                },
                {
                  "model": {
                    "type": "minecraft:range_dispatch",
                    "property": "minecraft:damage",
                    "entries": [
                      {
                        "threshold": 0,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_2"
                        }
                      },
                      {
                        "threshold": 0.85,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_2_damaged0"
                        }
                      },
                      {
                        "threshold": 0.9,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_2_damaged1"
                        }
                      },
                      {
                        "threshold": 0.95,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bow_pulling_2_damaged2"
                        }
                      }
                    ]
                  },
                  "threshold": 0.9
                }
              ],
              "fallback": {
                "type": "minecraft:range_dispatch",
                "property": "minecraft:damage",
                "entries": [
                  {
                    "threshold": 0,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_0"
                    }
                  },
                  {
                    "threshold": 0.85,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_0_damaged0"
                    }
                  },
                  {
                    "threshold": 0.9,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_0_damaged1"
                    }
                  },
                  {
                    "threshold": 0.95,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_0_damaged2"
                    }
                  }
                ]
              },
              "property": "minecraft:use_duration",
              "scale": 0.05
            },
            {
              "type": "minecraft:range_dispatch",
              "entries": [
                {
                  "model": {
                    "type": "minecraft:range_dispatch",
                    "property": "minecraft:damage",
                    "entries": [
                      {
                        "threshold": 0,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bows/e_bow_pulling_1"
                        }
                      },
                      {
                        "threshold": 0.85,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/diminishing/bows/e_bow_pulling_1_02"
                        }
                      },
                      {
                        "threshold": 0.9,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/diminishing/bows/e_bow_pulling_1_03"
                        }
                      },
                      {
                        "threshold": 0.95,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/diminishing/bows/e_bow_pulling_1_04"
                        }
                      }
                    ]
                  },
                  "threshold": 0.65
                },
                {
                  "model": {
                    "type": "minecraft:range_dispatch",
                    "property": "minecraft:damage",
                    "entries": [
                      {
                        "threshold": 0,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/bows/e_bow_pulling_2"
                        }
                      },
                      {
                        "threshold": 0.85,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/diminishing/bows/e_bow_pulling_2_02"
                        }
                      },
                      {
                        "threshold": 0.9,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/diminishing/bows/e_bow_pulling_2_03"
                        }
                      },
                      {
                        "threshold": 0.95,
                        "model": {
                          "type": "minecraft:model",
                          "model": "minecraft:item/diminishing/bows/e_bow_pulling_2_04"
                        }
                      }
                    ]
                  },
                  "threshold": 0.9
                }
              ],
              "fallback": {
                "type": "minecraft:range_dispatch",
                "property": "minecraft:damage",
                "entries": [
                  {
                    "threshold": 0,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bows/e_bow_pulling_0"
                    }
                  },
                  {
                    "threshold": 0.85,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/diminishing/bows/e_bow_pulling_0_02"
                    }
                  },
                  {
                    "threshold": 0.9,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/diminishing/bows/e_bow_pulling_0_03"
                    }
                  },
                  {
                    "threshold": 0.95,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/diminishing/bows/e_bow_pulling_0_04"
                    }
                  }
                ]
              },
              "property": "minecraft:use_duration",
              "scale": 0.05
            }
          ]
        }
      },
      "on_false": {
        "type": "minecraft:condition",
        "on_false": {
          "type": "minecraft:range_dispatch",
          "property": "minecraft:damage",
          "entries": [
            {
              "threshold": 0,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/bow"
              }
            },
            {
              "threshold": 0.85,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/bow_damaged0"
              }
            },
            {
              "threshold": 0.9,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/bow_damaged1"
              }
            },
            {
              "threshold": 0.95,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/bow_damaged2"
              }
            }
          ]
        },
        "on_true": {
          "type": "minecraft:range_dispatch",
          "entries": [
            {
              "model": {
                "type": "minecraft:range_dispatch",
                "property": "minecraft:damage",
                "entries": [
                  {
                    "threshold": 0,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_1"
                    }
                  },
                  {
                    "threshold": 0.85,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_1_damaged0"
                    }
                  },
                  {
                    "threshold": 0.9,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_1_damaged1"
                    }
                  },
                  {
                    "threshold": 0.95,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_1_damaged2"
                    }
                  }
                ]
              },
              "threshold": 0.65
            },
            {
              "model": {
                "type": "minecraft:range_dispatch",
                "property": "minecraft:damage",
                "entries": [
                  {
                    "threshold": 0,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_2"
                    }
                  },
                  {
                    "threshold": 0.85,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_2_damaged0"
                    }
                  },
                  {
                    "threshold": 0.9,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_2_damaged1"
                    }
                  },
                  {
                    "threshold": 0.95,
                    "model": {
                      "type": "minecraft:model",
                      "model": "minecraft:item/bow_pulling_2_damaged2"
                    }
                  }
                ]
              },
              "threshold": 0.9
            }
          ],
          "fallback": {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:damage",
            "entries": [
              {
                "threshold": 0,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_pulling_0"
                }
              },
              {
                "threshold": 0.85,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_pulling_0_damaged0"
                }
              },
              {
                "threshold": 0.9,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_pulling_0_damaged1"
                }
              },
              {
                "threshold": 0.95,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/bow_pulling_0_damaged2"
                }
              }
            ]
          },
          "property": "minecraft:use_duration",
          "scale": 0.05
        },
        "property": "minecraft:using_item"
      }
    }
  }
}