Json block behaviors Container

From Vintage Story Wiki
Jump to navigation Jump to search


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 Vintage Story is below.

	behaviors: [{name: "Container"}],
	entityclass: "GenericContainer",
	attributes: {
		inventoryClassName: "chest",
		quantitySlots: 12,
		dialogTitleLangCode: "basketcontents",

Main Page: Modding
Basics Mod Types | Asset System | Textures | Items | Recipes | Blocks | Model Creator | Release
Advanced Setup(Windows,Linux) | Items (Code, JSON) | Blocks | Item-Block interactions | Block Behaviors | Block Entities | Particles | World Access
Worldgen Terrain | Ores | Trees | WorldGen API
Rendering Shaders and Renderers
Property Overview Item | Block | Block Behaviors | Block Classes | Block Entities | Block Entity Behaviors