{
	code: "cabinet",
	class: "BlockGeneric",
	behaviors: [
		{ name: "TypedTexture" },
		{ name: "BlockEntityInteract" },
		{ name: "Display" },
		{ name: "CabinetDoors", properties: {
			doorElements: ["root/doorL/*", "root/doorR/*"],
			selectionBoxesOpened: [{ x1: 0, y1: 0.0625, z1: 0.625, x2: 0.0625, y2: 0.9375, z2: 1 }, { x1: 0.9375, y1: 0.0625, z1: 0.625, x2: 1, y2: 0.9375, z2: 1 } ],
			selectionBoxesClosed: [{ x1: 0, y1: 0.0625, z1: 0.625, x2: 1, y2: 0.9375, z2: 0.6875 }],
		} },
		{ name: "RotateablePlaceable", properties: { intervalDeg: 90 } }
	],
	entityBehaviors: [
		{ name: "RotatablePlaceable" },
		{ name: "Display" },
		{ name: "CabinetDoors" }
	],
	variantgroups: [
		{ code: "section", states: ["bottom", "middle", "top", "topbottom"] }
	],
	shape: {
		base: "block/wood/cabinet/1block/{section}",
		ignoreElements: ["psurface0-w14-h5-d9-shelf", "psurface1-w14-h5-d9-shelf", "psurface0-w14-h6-d9-shelf", "psurface1-w14-h6-d9-shelf"],
		rotateY: 0
	},
	attributes: {
		materialTypes: ["wood", "metal", "glass"],
		translationEntries: ["material-{wood}", "material-{metal}", "glass-{glass}"],
		defaults: ["oak", "iron", "vintage"],
		textureMappingByType: {
			"cabinet-middle": {
				"doors": "block/wood/cabinet/1block/doors/solid/middle/{wood}",
				"hardware": "block/metal/plate/{metal}",
				"glass": "block/glass/{glass}",
				"wood-back": "block/wood/cabinet/1block/wood/side/{wood}",
				"wood-side": "block/wood/cabinet/1block/wood/side/{wood}",
				"wood-top": "block/wood/cabinet/1block/wood/top/wood-top2/{wood}"
			},
			"cabinet-bottom": {
				"doors": "block/wood/cabinet/1block/doors/solid/middle/{wood}",
				"hardware": "block/metal/plate/{metal}",
				"glass": "block/glass/{glass}",
				"wood-back": "block/wood/cabinet/1block/wood/side/{wood}",
				"wood-side": "block/wood/cabinet/1block/wood/side/{wood}",
				"wood-top": "block/wood/cabinet/1block/wood/top/wood-top2/{wood}"
			},
			"*": {
				"doors": "block/wood/cabinet/1block/doors/solid/middle/{wood}",
				"hardware": "block/metal/plate/{metal}",
				"glass": "block/glass/{glass}",
				"wood-back": "block/wood/cabinet/1block/wood/side/{wood}",
				"wood-side": "block/wood/cabinet/1block/wood/side/{wood}",
				"wood-top": "block/wood/cabinet/1block/wood/top/wood-top1/{wood}"
			}
		},
		handbook: {
			groupBy: ["cabinet-{section}"]
		}
	},
	creativeinventoryStacks: [
		{
			tabs: [ "general", "decorative" ],
			stacks: [
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "birch" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "oak" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "maple" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "pine" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "acacia" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "kapok" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "baldcypress" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "larch" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "redwood" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "ebony" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "walnut" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "purpleheart" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "aged" } },
				{ type: "block", code: "cabinet-{section}", attributes: { "wood": "veryaged" } }
			]
		}
	],
	blockmaterial: "Wood",
	replaceable: 500,
	lightAbsorption: 1,
	sidesolid: { all: false, up: true },
	sideopaque: { all: false },
	sideAO: { all: false	},
	emitSideAO: { all: false	},
	resistance: 1.25,
	sounds: {
		"place": "block/planks",
		"hit": "block/planks",
		"break": "block/planks",
		"walk": "walk/wood"
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 24,
	},
	collisionbox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.6875 },
	selectionBoxes: [
		{ x1: 0, y1: 0, z1: 0, x2: 0.0625, y2: 0.9375, z2: 0.6875 },
		{ x1: 0, y1: 0.9375, z1: 0, x2: 1, y2: 1, z2: 0.6875 },
		{ x1: 0.9375, y1: 0, z1: 0, x2: 1, y2: 0.9375, z2: 0.6875 },
		{ x1: 0.0625, y1: 0, z1: 0, x2: 0.9375, y2: 0.9375, z2: 0.0625 },
	],
	materialDensity: 600,
	guiTransform: {
		rotation: { x: -22.6, y: -135, z: 0 },
		origin: { x: 0.5, y: 0.5, z: 0.35 },
		scale: 1.13
	},
	tpHandTransform: {
		translation: { x: -1.5, y: -1, z: -1.2 },
		rotation: { x: 5, y: -3, z: -96 },
		scale: 0.37
	},
	groundTransform: {
		translation: { x: 0, y: 0.05, z: 0 },
		rotation: { x: 90, y: -45, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 2.07
	}
}
