{
  "__comment": "Max gold durability is 33",
    "parent": "item/handheld",
    "textures": {
        "layer0": "minecraft:item/golden_sword"
    },
    "overrides": [
        {"predicate": {"damaged": 0, "damage": 0.03030303030303}, "model": "magic:other/sword_master"},
        {"predicate": {"damaged": 0, "damage": 0.06060606060606}, "model": "magic:sabers/lightsaber_green"},
        {"predicate": {"damaged": 0, "damage": 0.09090909090909}, "model": "magic:sabers/lightsaber_blue"},
        {"predicate": {"damaged": 0, "damage": 0.12121212121212}, "model": "magic:sabers/lightsaber_red"},
        {"predicate": {"damaged": 0, "damage": 0.15151515151515152}, "model": "magic:sabers/lightsaber_orange"},
        {"predicate": {"damaged": 0, "damage": 0.18181818181818182}, "model": "magic:sabers/lightsaber_purple"},
        {"predicate": {"damaged": 0, "damage": 0.21212121212121213}, "model": "magic:weapons/emerald_sword"},
        {"predicate": {"damaged": 0, "damage": 0.242424242424242}, "model": "magic:wands/valkglow"},
        {"predicate": {"damaged": 0, "damage": 0.272727272727273}, "model": "magic:other/whitedagger"},
        {"predicate": {"damaged": 0, "damage": 0.303030303030303}, "model": "magic:weapons/demon_sword"},
        {"predicate": {"damaged": 0, "damage": 0.333333333333333}, "model": "magic:wands/felmglow"},
        {"predicate": {"damaged": 0, "damage": 0.363636363636364}, "model": "magic:wands/rivenglow"},
        {"predicate": {"damaged": 0, "damage": 0.393939393939394}, "model": "magic:wands/silver"},
        {"predicate": {"damaged": 0, "damage": 0.424242424242424}, "model": "magic:wands/lavad"},

        {"predicate": {"damaged": 1, "damage": 0}, "model": "item/golden_sword"},

        {"predicate": {"custom_model_data": 18001}, "model": "magic:weapons/emerald_sword"},
        {"predicate": {"custom_model_data": 18002}, "model": "magic:other/sword_master"},
        {"predicate": {"custom_model_data": 18003}, "model": "magic:sabers/lightsaber_green"},
        {"predicate": {"custom_model_data": 18004}, "model": "magic:sabers/lightsaber_blue"},
        {"predicate": {"custom_model_data": 18005}, "model": "magic:sabers/lightsaber_red"},
        {"predicate": {"custom_model_data": 18006}, "model": "magic:sabers/lightsaber_orange"},
        {"predicate": {"custom_model_data": 18007}, "model": "magic:sabers/lightsaber_purple"},
        {"predicate": {"custom_model_data": 18008}, "model": "magic:weapons/emerald_sword"},
        {"predicate": {"custom_model_data": 18009}, "model": "magic:wands/valkglow"},
        {"predicate": {"custom_model_data": 18010}, "model": "magic:other/whitedagger"},
        {"predicate": {"custom_model_data": 18011}, "model": "magic:weapons/demon_sword"},
        {"predicate": {"custom_model_data": 18012}, "model": "magic:wands/felmglow"},
        {"predicate": {"custom_model_data": 18013}, "model": "magic:wands/rivenglow"},
        {"predicate": {"custom_model_data": 18014}, "model": "magic:wands/silver"},
        {"predicate": {"custom_model_data": 18015}, "model": "magic:wands/lavad"}
    ]
}
