{
  "model": {
    "type": "minecraft:condition",
    "property": "minecraft:using_item",
    "on_true": {
      "type": "minecraft:range_dispatch",
      "property": "minecraft:crossbow/pull",
      "entries": [
        {
          "threshold": 0.58,
          "model": {
            "type": "minecraft:select",
            "property": "minecraft:component",
            "component": "minecraft:custom_name",
            "cases": [
              {
                "when": "Firebolt Thrower",
                "model": {
                  "type": "minecraft:model",
                  "model": "mcd:item/crossbows/firebolt_thrower_pulling_1"
                }
              }
            ],
            "fallback": {
              "type": "minecraft:model",
              "model": "minecraft:item/crossbow_pulling_1"
            }
          }
        },
        {
          "threshold": 0.9,
          "model": {
            "type": "minecraft:select",
            "property": "minecraft:component",
            "component": "minecraft:custom_name",
            "cases": [
              {
                "when": "Firebolt Thrower",
                "model": {
                  "type": "minecraft:model",
                  "model": "mcd:item/crossbows/firebolt_thrower_pulling_2"
                }
              }
            ],
            "fallback": {
              "type": "minecraft:model",
              "model": "minecraft:item/crossbow_pulling_2"
            }
          }
        }
      ],
      "fallback": {
        "type": "minecraft:select",
        "property": "minecraft:component",
        "component": "minecraft:custom_name",
        "cases": [
          {
            "when": "Firebolt Thrower",
            "model": {
              "type": "minecraft:model",
              "model": "mcd:item/crossbows/firebolt_thrower_pulling_0"
            }
          }
        ],
        "fallback": {
          "type": "minecraft:model",
          "model": "minecraft:item/crossbow_pulling_0"
        }
      }
    },
    "on_false": {
      "type": "minecraft:select",
      "property": "minecraft:charge_type",
      "cases": [
        {
          "when": "arrow",
          "model": {
            "type": "minecraft:select",
            "property": "minecraft:component",
            "component": "minecraft:custom_name",
            "cases": [
              {
                "when": "Firebolt Thrower",
                "model": {
                  "type": "minecraft:model",
                  "model": "mcd:item/crossbows/firebolt_thrower_arrow"
                }
              }
            ],
            "fallback": {
              "type": "minecraft:model",
              "model": "minecraft:item/crossbow_arrow"
            }
          }
        },
        {
          "when": "rocket",
          "model": {
            "type": "minecraft:select",
            "property": "minecraft:component",
            "component": "minecraft:custom_name",
            "cases": [
              {
                "when": "Firebolt Thrower",
                "model": {
                  "type": "minecraft:model",
                  "model": "mcd:item/crossbows/firebolt_thrower_firework"
                }
              }
            ],
            "fallback": {
              "type": "minecraft:model",
              "model": "minecraft:item/crossbow_firework"
            }
          }
        }
      ],
      "fallback": {
        "type": "minecraft:select",
        "property": "minecraft:component",
        "component": "minecraft:custom_name",
        "cases": [
          {
            "when": "Firebolt Thrower",
            "model": {
              "type": "minecraft:model",
              "model": "mcd:item/crossbows/firebolt_thrower"
            }
          }
        ],
        "fallback": {
          "type": "minecraft:model",
          "model": "minecraft:item/crossbow"
        }
      }
    }
  }
}