Class EntityBehaviorMouthInventory
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Adds one-slot inventory and displays the stored item on the entity.
Uses the "mouthinventory" code Open in GitHub
[DocumentAsJson]
[AddDocumentationProperty("acceptStacks", "The items the inventory can hold", "Vintagestory.API.Common.JsonItemStack[]", "Required", "", false)]
public class EntityBehaviorMouthInventory : EntityBehavior
- Inheritance
-
EntityBehaviorMouthInventory
Examples
"behaviors": [
{
"code": "mouthinventory",
"acceptStacks": [
{ "type": "item", "code": "honeycomb" },
{ "type": "item", "code": "fruit-blueberry" },
{ "type": "item", "code": "fruit-cranberry" },
{ "type": "item", "code": "fruit-redcurrant" },
{ "type": "item", "code": "fruit-whitecurrant" },
{ "type": "item", "code": "fruit-blackcurrant" }
]
},
],
Fields
acceptStacks (Required)
The items the inventory can hold