Table of Contents

Class EntityBehaviorOpenableContainer

Namespace
Vintagestory.GameContent
Assembly
VSEssentials.dll

Adds inventory to entity that is opened upon interacting with it.
Uses the "openablecontainer" code Open in GitHub

[DocumentAsJson]
[AddDocumentationProperty("quantitySlots", "The amount of slots the inventory should have", "System.Int32", "Optional", "8", false)]
public class EntityBehaviorOpenableContainer : EntityBehavior
Inheritance
EntityBehaviorOpenableContainer

Examples

"behaviors": [
 {
     "code": "openablecontainer",
     "quantitySlots": 8
 },
],

Fields

quantitySlots (Optional) (Default: 8)

The amount of slots the inventory should have

Field Value

Int32