{
  "model": {
    "type": "minecraft:condition",
    "property": "minecraft:has_component",
    "component": "minecraft:enchantments",
    "ignore_default": true,
    "on_true": {
      "type": "minecraft:select",
      "property": "minecraft:display_context",
      "cases": [
        {
          "when": [
            "firstperson_lefthand",
            "firstperson_righthand"
          ],
          "model": {
            "type": "minecraft:model",
            "model": "item/vanillatweaks/fp/sword/e_wooden_sword"
          }
        },
        {
          "when": [
            "gui"
          ],
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/wooden_sword"
          }
        }
      ],
      "fallback": {
        "type": "minecraft:model",
        "model": "item/vanillatweaks/tp/sword/e_wooden_sword"
      }
    },
    "on_false": {
      "type": "minecraft:model",
      "model": "minecraft:item/wooden_sword"
    }
  }
}