{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:display_context",
    "cases": [
      {
        "when": "gui",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/pumpkin_pie"
        }
      }
    ],
    "fallback": {
      "type": "minecraft:condition",
      "property": "minecraft:using_item",
      "on_false": {
        "type": "minecraft:model",
        "model": "minecraft:item/pumpkin_pie"
      },
      "on_true": {
        "type": "minecraft:range_dispatch",
        "property": "minecraft:use_duration",
        "remaining": true,
        "scale": 1,
        "entries": [
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_6"
            },
            "threshold": 2
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_5"
            },
            "threshold": 6
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_4"
            },
            "threshold": 10
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_3"
            },
            "threshold": 14
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_2"
            },
            "threshold": 18
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_1"
            },
            "threshold": 22
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "eg_tasty_items:item/pumpkin_pie/eat_0"
            },
            "threshold": 26
          }
        ],
        "fallback": {
          "type": "minecraft:model",
          "model": "eg_tasty_items:item/pumpkin_pie/eat_6"
        }
      }
    }
  }
}
