{
  "model": {
    "type": "minecraft:condition",
        "property": "minecraft:has_component",
        "component": "minecraft:enchantments",
        "ignore_default": true,
    "on_true": {
      "type": "minecraft:composite",
      "models": [
        {
          "type": "minecraft:model",
          "model": "minecraft:item/enchanted_sword"
        },
        {
          "type": "minecraft:model",
          "model": "minecraft:item/defaults/golden_sword"
        }
      ]
    },
    "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:model",
            "model": "minecraft:item/enchanted_sword"
          },
          {
            "type": "minecraft:model",
            "model": "minecraft:item/defaults/golden_sword"
          }
        ]
      },
      "on_false": {
        "type": "minecraft:model",
        "model": "minecraft:item/defaults/golden_sword"
      }
    }
  }
}