Json block behaviors Container
From Vintage Story Wiki
Purpose
This attaches a container to the block and should be paired with the entityClass "GenericContainer". It has attributes that apply to the Generic Container. An example implementation from VintageStorage is below.
behaviors: [{name: "Container"}],
entityclass: "GenericContainer",
attributes: {
inventoryClassName: "chest",
quantitySlots: 12,
dialogTitleLangCode: "basketcontents",
},
Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.
Modding | |
---|---|
Modding Introduction | Getting Started • Theme Pack |
Content Modding | Content Mods • Developing a Content Mod • Basic Tutorials • Intermediate Tutorials • Advanced Tutorials • Content Mod Concepts |
Code Modding | Code Mods • Setting up your Development Environment |
Property Overview | Item • Entity • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |