{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:component",
    "component": "minecraft:custom_name",
    "cases": [
      {
        "when": "Diamond Excalibur",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/diamond_excalibur"
        }
      },
      {
        "when": "Diamond Hammer",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/diamond_hammer"
        }
      },
      {
        "when": "Dragon Slayer Greatsword",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/dragon_slayer_greatsword"
        }
      },
      {
        "when": "Diamond Master Sword",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/diamond_master_sword"
        }
      },
      {
        "when": "Diamond Sword In Stone",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/diamond_sword_in_stone"
        }
      }
    ],
    "fallback": {
      "type": "minecraft:model",
      "model": "minecraft:item/diamond_sword"
    }
  }
}