Json block behaviors Container: Difference between revisions

From Vintage Story Wiki
(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)

Revision as of 18: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",
	},
Icon Sign.png

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.