{
  "model": {
    "type": "minecraft:condition",
        "property": "minecraft:has_component",
        "component": "minecraft:enchantments",
        "ignore_default": true,
    "on_true": {
      "type": "minecraft:composite",
      "models": [
        {
          "type": "minecraft:range_dispatch",
          "property": "minecraft:damage",
          "entries": [
            {
              "threshold": 0,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/enchanted_shovel"
              }
            },
            {
              "threshold": 0.85,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/diminishing/enchanted_shovel_1"
              }
            },
            {
              "threshold": 0.9,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/diminishing/enchanted_shovel_2"
              }
            },
            {
              "threshold": 0.95,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/diminishing/enchanted_shovel_3"
              }
            }
          ]
        },
        {
          "type": "minecraft:range_dispatch",
          "property": "minecraft:damage",
          "entries": [
            {
              "threshold": 0,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/wooden_shovel"
              }
            },
            {
              "threshold": 0.85,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/wooden_shovel_damaged0"
              }
            },
            {
              "threshold": 0.9,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/wooden_shovel_damaged1"
              }
            },
            {
              "threshold": 0.95,
              "model": {
                "type": "minecraft:model",
                "model": "minecraft:item/wooden_shovel_damaged2"
              }
            }
          ]
        }
      ]
    },
    "on_false": {
      "type": "minecraft:condition",
          "property": "minecraft:has_component",
          "component": "minecraft:enchantment_glint_override",
          "ignore_default": true,
      "on_true": {
        "type": "minecraft:composite",
        "models": [
          {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:damage",
            "entries": [
              {
                "threshold": 0,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/enchanted_shovel"
                }
              },
              {
                "threshold": 0.85,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/diminishing/enchanted_shovel_1"
                }
              },
              {
                "threshold": 0.9,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/diminishing/enchanted_shovel_2"
                }
              },
              {
                "threshold": 0.95,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/diminishing/enchanted_shovel_3"
                }
              }
            ]
          },
          {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:damage",
            "entries": [
              {
                "threshold": 0,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/wooden_shovel"
                }
              },
              {
                "threshold": 0.85,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/wooden_shovel_damaged0"
                }
              },
              {
                "threshold": 0.9,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/wooden_shovel_damaged1"
                }
              },
              {
                "threshold": 0.95,
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/wooden_shovel_damaged2"
                }
              }
            ]
          }
        ]
      },
      "on_false": {
        "type": "minecraft:range_dispatch",
        "property": "minecraft:damage",
        "entries": [
          {
            "threshold": 0,
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/wooden_shovel"
            }
          },
          {
            "threshold": 0.85,
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/wooden_shovel_damaged0"
            }
          },
          {
            "threshold": 0.9,
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/wooden_shovel_damaged1"
            }
          },
          {
            "threshold": 0.95,
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/wooden_shovel_damaged2"
            }
          }
        ]
      }
    }
  }
}