{
    "model":
    {
        "type": "minecraft:select",
        "property": "minecraft:display_context",
        "cases":
        [
            {
                "when": "gui",
                "model":
                {
                    "type": "minecraft:model",
                    "model": "minecraft:item/carrot"
                }
            }
        ],
        "fallback":
        {
            "type": "minecraft:condition",
            "property": "minecraft:using_item",
            "on_false":
            {
                "type": "minecraft:model",
                "model": "minecraft:item/carrot"
            },
            "on_true":
            {
                "type": "minecraft:range_dispatch",
                "property": "minecraft:use_duration",
                "remaining": true,
                "scale": 1,
                "entries":
                [
                    {
                        "model":
                        {
                            "type": "minecraft:model",
                            "model": "sapixcraft:item/carrot_chomp_5"
                        },
                        "threshold": 2
                    },
                    {
                        "model":
                        {
                            "type": "minecraft:model",
                            "model": "sapixcraft:item/carrot_chomp_4"
                        },
                        "threshold": 6
                    },
                    {
                        "model":
                        {
                            "type": "minecraft:model",
                            "model": "sapixcraft:item/carrot_chomp_3"
                        },
                        "threshold": 11
                    },
                    {
                        "model":
                        {
                            "type": "minecraft:model",
                            "model": "sapixcraft:item/carrot_chomp_2"
                        },
                        "threshold": 16
                    },
                    {
                        "model":
                        {
                            "type": "minecraft:model",
                            "model": "sapixcraft:item/carrot_chomp_1"
                        },
                        "threshold": 22
                    },
                    {
                        "model":
                        {
                            "type": "minecraft:model",
                            "model": "sapixcraft:item/carrot_eating"
                        },
                        "threshold": 26.6
                    }
                ],
                "fallback":
                {
                    "type": "minecraft:model",
                    "model": "sapixcraft:item/carrot_chomp_5"
                }
            }
        }
    }
}