{
    "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": "gui",
                    "model": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/golden_chestplate"
                    }
                }
            ],
            "fallback": {
                "type": "minecraft:model",
                "model": "minecraft:item/chestplates/e_golden_chestplate"
            }
        },
        "on_false": {
            "type": "minecraft:model",
            "model": "minecraft:item/golden_chestplate"
        }
    }
}