{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:component",
    "component": "minecraft:custom_name",
    "cases": [
      {
        "when": "Dragon Slayer Greatsword",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/dragon_slayer_greatsword"
        }
      },
      {
        "when": "Iron Excalibur",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/iron_excalibur/custom_name"
        }
      },
      {
        "when": "Iron Hammer",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/excalibur/custom_name/iron_hammer"
        }
      }
    ],
    "fallback": {
      "type": "minecraft:model",
      "model": "minecraft:item/iron_sword"
    }
  }
}