# Consumable

{% tabs %}
{% tab title="Modern (Recommended)" %}
**Food**

```yaml
info:
  namespace: my_items
items:
  my_food:
    name: My Food
    graphics:
      texture: item/my_food
    consumable:
      nutrition: 7
      saturation: 4
```

**Drink**

```yaml
info:
  namespace: my_items
items:
  my_drink:
    name: My Drink
    graphics:
      texture: item/my_drink
    consumable:
      nutrition: 1
      animation: drink
```

{% endtab %}

{% tab title="Old (1.21.3 and lower)" %}
**Food**

```yaml
info:
  namespace: my_items
items:
  my_food:
    enabled: true
    display_name: My Food
    resource:
      material: COOKED_PORKCHOP
      generate: true
      textures:
        - item/my_food
    events:
      eat:
        feed:
          amount: 7
          saturation: 4
```

**Drink**

```yaml
info:
  namespace: my_items
items:
  my_drink:
    enabled: true
    display_name: My Drink
    resource:
      material: POTION
      generate: true
      textures:
        - item/my_drink
    specific_properties:
      potion:
        type: WATER
        color: WHITE
    item_flags:
      - HIDE_POTION_EFFECTS
    events:
      drink:
        feed:
          amount: 1
          saturation: 0
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/adding-content/items/consumable.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
