Difference between revisions of "Json block behaviors Container"

From Vintage Story Wiki
Jump to navigation Jump to search
(Created page with "== 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 e...")
 
(No difference)

Latest revision as of 20:29, 27 March 2019

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",
	},


Vintage Story: 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