---
description: >-
  Food is a type of resource that is consumed on use and can restore power
  resources and cast status effects to buff the user.
---

# Food

## Creation

To create food, find (or create) the _GameName/Resources/GameName/Item_ folder (or any subfolder) in the project tab and right click.  Choose _Create > AnyRPG > Inventory > Items > Food_.

![](https://2976860065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7Nd93HqSNPpv2JhrViE%2Fuploads%2FmsR8wFSzAc2fJYIuZp3Z%2Fimage.png?alt=media\&token=d60533e4-e6b7-4152-b7c2-be1acad1f466)

## Properties

In addition to the properties shared by all [Items](), food has the following unique properties.

| Name                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Consumption Verb           | The verb to use in the casting tip.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Holdable Object List       | <p>A list of <a href="../prefab-profile">PrefabProfiles</a> that contain links to GameObjects that will be held while the food is being consumed.<br><strong>Holdable Object Name</strong><br>The name of a <a href="../prefab-profile">PrefabProfile</a> that contains a link to a GameObject.<br><strong>Use Universal Attachment</strong><br>If true, attachment points from the <a href="../prefab-profile">PrefabProfile</a> will be ignored, and the universal attachment in the <em>Attachment Name</em> field will be used.<br><strong>Attachment Name</strong><br>The <em>Node Name</em> field from one of the <em>Attachment Point Nodes</em> in an <a href="../attachment-profile">Attachment Profile</a>.</p> |
| Animation Clip             | An animation clip to play while the food is being consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Animation Profile Name     | The name of an [Animation Profile](../animation-profile) that contains an animation clip to play while the food is being consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Casting Audio Clip         | An audio clip to play while the food is being consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Casting Audio Profile Name | The name of an [Audio Profile](../audio-profile) that contains an audio clip to play while the food is being consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Tick Rate                  | The number of seconds that should elapse between each tick, where [Power Resources](../power-resource) from the _Resource Amounts_ list are restored while eating.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Resource Amounts           | <p>A list of <a href="../power-resource">Power Resources</a> and the amounts to restore while eating.<br><strong>Resource Name</strong><br>The name of a <a href="../power-resource">Power Resource</a>.<br><strong>Min Amount</strong><br>If the amount is lower than this value, it will be raised to this value.<br><strong>Base Amount</strong><br>Amount not scaled by level.<br><strong>Max Amount</strong><br>If the amount is higher than this value, it will be lowered to this value.  0 is unlimited.</p>                                                                                                                                                                                                      |
| Status Effect              | A [Status Effect](../ability-effects/status-effect) to cast on the user when the food is completely consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

## Next Steps

* Add food to a [Vendor Collection](../vendor-collection) so it can be purchased from a [Vendor](../interactable-option-configurations/vendor-config).
* Add food to a [Loot Table](../loot-table) so that it can drop upon defeat of an enemy.
* Add food as an output to a [Recipe](../recipe) so that it can be crafted.
