{
	code: "trunk",
	class: "BlockGenericTypedContainerTrunk",
	entityclass: "GenericTypedContainer",
	attributes: {
		reinforcable: true,
		partialAttachable: true,
		"humanoidTraversalCost": 100,
		inventoryClassName: "chest",
		defaultType: "normal-generic",
		types: ["normal-generic", "collapsed1", "collapsed2", "collapsed3"],
		rotatatableInterval: {
			"normal-generic": "22.5degnot45deg",
			collapsed1: "22.5degnot45deg",
			collapsed2: "22.5degnot45deg",
			collapsed3: "22.5degnot45deg"
		},
		drop: {
			"normal-generic": true,
			collapsed1: false,
			collapsed2: false,
			collapsed3: false,
		},
		quantitySlots: {
			"normal-generic": 36,
			"collapsed1": 18,
			"collapsed2": 18,
			"collapsed3": 18
		},
		quantityColumns: {
			"normal-generic": 9,
			"collapsed1": 9,
			"collapsed2": 9,
			"collapsed3": 9
		},
		dialogTitleLangCode: {
			"normal-generic": "trunkcontents",
			"collapsed1": "trunkcontents",
			"collapsed2": "trunkcontents",
			"collapsed3": "trunkcontents"
		},
		storageType: {
			"normal-generic": 189,
			"collapsed1": 189,
			"collapsed2": 189,
			"collapsed3": 189
		},
		retrieveOnly: {
			"normal-generic": false,
			"collapsed1": true,
			"collapsed2": true,
			"collapsed3": true
		},
		shape: {
			"normal-generic": "block/wood/trunk/normal",
			"collapsed1": "block/wood/trunk/collapsed1",
			"collapsed2": "block/wood/trunk/collapsed2",
			"collapsed3": "block/wood/trunk/collapsed3"
		},
		typedOpenSound: {
			"normal-generic": "sounds/block/largechestopen",
			"collapsed1": "sounds/block/largechestopen",
			"collapsed2": "sounds/block/largechestopen",
			"collapsed3": "sounds/block/largechestopen"
		},
		typedCloseSound: {
			"normal-generic": "sounds/block/largechestclose",
			"collapsed1": "sounds/block/largechestclose",
			"collapsed2": "sounds/block/largechestclose",
			"collapsed3": "sounds/block/largechestclose"
		},
		variantByGroup: "side",
		variantByGroupInventory: null
	},
	behaviors: [
		{ name: "HorizontalOrientable"},
		{ name: "Multiblock", propertiesByType: {
				"*-north": { sizex: 2, sizey: 1, sizez: 1, cposition: { x: 0, y: 0, z: 0 } },
				"*-east": { sizex: 1, sizey: 1, sizez: 2, cposition: { x: 0, y: 0, z: 0 } },
				"*-south": { sizex: 2, sizey: 1, sizez: 1, cposition: { x: 1, y: 0, z: 0 } },
				"*-west": { sizex: 1, sizey: 1, sizez: 2, cposition: { x: 0, y: 0, z: 1 } } 
			}
		},
		{ name: "Lockable" },
		{ name: "Container"}
	],
	entityBehaviors: [{ name: "Animatable" }],
	variantgroups: [
		{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
	],
	creativeinventory: {  },
	creativeinventoryStacksByType: {
		"*-east": [
			{
				tabs: [ "general", "decorative" ],
				stacks: [
					{ type: "block", code: "trunk-east", attributes: { type: "normal-generic" } },
					{ type: "block", code: "trunk-east", attributes: { type: "collapsed1" } },
					{ type: "block", code: "trunk-east", attributes: { type: "collapsed2" } },
					{ type: "block", code: "trunk-east", attributes: { type: "collapsed3" } }
				]
			}
		]
	},
	heldTpIdleAnimation: "holdunderarm",
	shapeInventory: { base: "block/wood/trunk/normal", rotateY: 270 },
	shapeByType: {
		"*-north": { base: "block/wood/trunk/normal", rotateY: 0 },
		"*-east": { base: "block/wood/trunk/normal", rotateY: 270 },
		"*-west": { base: "block/wood/trunk/normal", rotateY: 90 },
		"*-south": { base: "block/wood/trunk/normal", rotateY: 180 },
	},
	// Must declare textures so they get added to the block texture atlas
	textures: {
		"normal-generic-right-side": { base: "block/wood/trunk/right-side" },
		"normal-generic-sides2": { base: "block/wood/trunk/sides" },
		"normal-generic-lid": { base: "block/wood/trunk/lid" },
		"normal-generic-accessories": { base: "block/wood/trunk/accessories" },
		"normal-generic-left-side": { base: "block/wood/trunk/left-side" },

		"collapsed1-corners": { base: "block/wood/chest/aged/corners", },
		"collapsed1-sides": { base: "block/wood/chest/aged/sides" },
		"collapsed1-lid": { base: "block/wood/chest/aged/lid" },
		"collapsed1-floor": { base: "block/wood/chest/aged/floor" },

		"collapsed2-corners": { base: "block/wood/chest/aged/corners", },
		"collapsed2-sides": { base: "block/wood/chest/aged/sides" },
		"collapsed2-lid": { base: "block/wood/chest/aged/lid" },
		"collapsed2-floor": { base: "block/wood/chest/aged/floor" },

		"collapsed3-corners": { base: "block/wood/chest/aged/corners", },
		"collapsed3-sides": { base: "block/wood/chest/aged/sides" },
		"collapsed3-lid": { base: "block/wood/chest/aged/lid" },
		"collapsed3-floor": { base: "block/wood/chest/aged/floor" }
	},
	blockmaterial: "Wood",
	replaceable: 900,
	resistance: 3,
	lightAbsorption: 0,
	sideAo: { all: false },
	sidesolid: {
		all: false
	},
	sideopaque: {
		all: false
	},
	collisionSelectionBox: {
		x1: 0.0625, y1: 0, z1: 0.0625, x2: 1, y2: 0.8125, z2: 0.9375,
		rotateYByType: {
			"*-east": 270,
			"*-west": 90,
			"*-south": 180
		}
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 35,
	},
	sounds: {
		"place": "block/planks",
		"hit": "block/planks",
		"break": "block/planks",
		"walk": "walk/wood"
	},
	materialDensity: 600,
	tpHandTransform: {
		translation: { x: -0.3, y: -0.5, z: -0.3 },
		rotation: { x: 0, y: 90, z: -102 },
		scale: 0.56
	},
	guiTransform: {
		origin: { x: 0.5, y: 0.5, z: 0.97 },
		scale: 0.95
	}
}