{
    "model": {
        "type": "minecraft:condition",
        "property": "minecraft:has_component",
        "component": "custom_model_data",
        "on_true": { 

"type": "minecraft:range_dispatch",
"fallback": {
    "type": "minecraft:model",
    "model": "minecraft:item/diamond_shovel"
},
"property": "minecraft:custom_model_data",
"entries": [
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_amethyst"}, "threshold": 311001.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_copper"}, "threshold": 311002.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_diamond"}, "threshold": 311003.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_emerald"}, "threshold": 311004.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_gold"}, "threshold": 311005.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_iron"}, "threshold": 311006.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_lapis"}, "threshold": 311007.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_netherite"}, "threshold": 311008.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_quartz"}, "threshold": 311009.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_redstone"}, "threshold": 311010.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_resin"}, "threshold": 311041.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_amethyst"}, "threshold": 311011.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_copper"}, "threshold": 311012.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_diamond"}, "threshold": 311013.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_emerald"}, "threshold": 311014.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_gold"}, "threshold": 311015.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_iron"}, "threshold": 311016.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_lapis"}, "threshold": 311017.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_netherite"}, "threshold": 311018.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_quartz"}, "threshold": 311019.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_redstone"}, "threshold": 311020.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_resin"}, "threshold": 311042.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_amethyst"}, "threshold": 311021.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_copper"}, "threshold": 311022.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_diamond"}, "threshold": 311023.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_emerald"}, "threshold": 311024.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_gold"}, "threshold": 311025.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_iron"}, "threshold": 311026.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_lapis"}, "threshold": 311027.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_netherite"}, "threshold": 311028.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_quartz"}, "threshold": 311029.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_redstone"}, "threshold": 311030.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_resin"}, "threshold": 311043.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_amethyst"}, "threshold": 311031.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_copper"}, "threshold": 311032.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_diamond"}, "threshold": 311033.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_emerald"}, "threshold": 311034.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_gold"}, "threshold": 311035.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_iron"}, "threshold": 311036.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_lapis"}, "threshold": 311037.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_netherite"}, "threshold": 311038.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_quartz"}, "threshold": 311039.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_redstone"}, "threshold": 311040.0 },
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_resin"}, "threshold": 311044.0 }
]

        },
        "on_false": { 

"type": "minecraft:select",
"fallback": {
    "type": "minecraft:model",
    "model": "minecraft:item/diamond_shovel"
},
"property": "minecraft:component",
"component": "minecraft:trim",
"cases": [
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_amethyst"}, "when": {"pattern":"tooltrims:linear", "material": "amethyst"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_copper"}, "when": {"pattern":"tooltrims:linear", "material": "copper"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_diamond"}, "when": {"pattern":"tooltrims:linear", "material": "diamond"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_emerald"}, "when": {"pattern":"tooltrims:linear", "material": "emerald"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_gold"}, "when": {"pattern":"tooltrims:linear", "material": "gold"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_iron"}, "when": {"pattern":"tooltrims:linear", "material": "iron"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_lapis"}, "when": {"pattern":"tooltrims:linear", "material": "lapis"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_netherite"}, "when": {"pattern":"tooltrims:linear", "material": "netherite"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_quartz"}, "when": {"pattern":"tooltrims:linear", "material": "quartz"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_redstone"}, "when": {"pattern":"tooltrims:linear", "material": "redstone"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_linear_resin"}, "when": {"pattern":"tooltrims:linear", "material": "resin"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_amethyst"}, "when": {"pattern":"tooltrims:tracks", "material": "amethyst"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_copper"}, "when": {"pattern":"tooltrims:tracks", "material": "copper"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_diamond"}, "when": {"pattern":"tooltrims:tracks", "material": "diamond"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_emerald"}, "when": {"pattern":"tooltrims:tracks", "material": "emerald"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_gold"}, "when": {"pattern":"tooltrims:tracks", "material": "gold"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_iron"}, "when": {"pattern":"tooltrims:tracks", "material": "iron"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_lapis"}, "when": {"pattern":"tooltrims:tracks", "material": "lapis"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_netherite"}, "when": {"pattern":"tooltrims:tracks", "material": "netherite"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_quartz"}, "when": {"pattern":"tooltrims:tracks", "material": "quartz"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_redstone"}, "when": {"pattern":"tooltrims:tracks", "material": "redstone"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_tracks_resin"}, "when": {"pattern":"tooltrims:tracks", "material": "resin"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_amethyst"}, "when": {"pattern":"tooltrims:charge", "material": "amethyst"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_copper"}, "when": {"pattern":"tooltrims:charge", "material": "copper"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_diamond"}, "when": {"pattern":"tooltrims:charge", "material": "diamond"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_emerald"}, "when": {"pattern":"tooltrims:charge", "material": "emerald"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_gold"}, "when": {"pattern":"tooltrims:charge", "material": "gold"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_iron"}, "when": {"pattern":"tooltrims:charge", "material": "iron"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_lapis"}, "when": {"pattern":"tooltrims:charge", "material": "lapis"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_netherite"}, "when": {"pattern":"tooltrims:charge", "material": "netherite"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_quartz"}, "when": {"pattern":"tooltrims:charge", "material": "quartz"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_redstone"}, "when": {"pattern":"tooltrims:charge", "material": "redstone"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_charge_resin"}, "when": {"pattern":"tooltrims:charge", "material": "resin"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_amethyst"}, "when": {"pattern":"tooltrims:frost", "material": "amethyst"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_copper"}, "when": {"pattern":"tooltrims:frost", "material": "copper"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_diamond"}, "when": {"pattern":"tooltrims:frost", "material": "diamond"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_emerald"}, "when": {"pattern":"tooltrims:frost", "material": "emerald"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_gold"}, "when": {"pattern":"tooltrims:frost", "material": "gold"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_iron"}, "when": {"pattern":"tooltrims:frost", "material": "iron"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_lapis"}, "when": {"pattern":"tooltrims:frost", "material": "lapis"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_netherite"}, "when": {"pattern":"tooltrims:frost", "material": "netherite"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_quartz"}, "when": {"pattern":"tooltrims:frost", "material": "quartz"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_redstone"}, "when": {"pattern":"tooltrims:frost", "material": "redstone"}},
    {"model": {"type": "model", "model": "tooltrims:trims/diamond_shovel_frost_resin"}, "when": {"pattern":"tooltrims:frost", "material": "resin"}}
]

        }
    }
}