{
    "model": {
        "type": "minecraft:select",
        "property": "custom_model_data",
        "index": 0,
        "cases": [
            {
                "when": "in0thn",
                "model": {
                    "type": "minecraft:select",
                    "property": "custom_model_data",
                    "index": 1,
                    "cases": [
                        {
                            "when": "xraymc",
                            "model": {
                                "type": "minecraft:select",
                                "property": "custom_model_data",
                                "index": 2,
                                "cases": [
                                    {
                                        "when": "red_envelope",
                                        "model": {
                                            "type": "minecraft:model",
                                            "model": "in0thn:red_envelope"
                                        }
                                    }
                                ],
                                "fallback": {
                                    "type": "minecraft:model",
                                    "model": "minecraft:item/red_bundle"
                                }
                            }
                        }
                    ],
                    "fallback": {
                        "type": "minecraft:model",
                        "model": "minecraft:item/red_bundle"
                    }
                }
            }
        ],
        "fallback": {
            "type": "minecraft:model",
            "model": "minecraft:item/red_bundle"
        }
    }
}