{
	code: "plankslab",
	// This block class removes the bottom snow section from vertically standing slabs when there is no ground below
	class: "BlockSlabSnowRemove",
	behaviors: [
		{
			name: "OmniRotatable",
			properties: {
				"rotateSides": true,
				"facing": "block"
			}
		},
		{ name: "WrenchOrientable", properties: { baseCode: "plankslab-{wood}-*-{cover}" } }
	],
	variantgroups: [
		{ code: "wood", states: ["aged", "veryaged"], loadFromProperties: "block/wood" },
		{ code: "rot", states: ["north", "east", "south", "west", "up", "down"] },
		{ code: "cover", states: ["free", "snow"] }
	],
	skipVariants: ["*-up-snow"],
	shapeByType: {
		"*-snow": { base: "block/basic/slab/snow-slab-{rot}" },
		"*": { base: "block/basic/slab/slab-{rot}" },
	},
	textures: {
		sides: {
			baseByType: {
				"plankslab-aged-*": "block/wood/planks/aged/aged1",
				"plankslab-veryaged-*": "block/wood/planks/aged/veryaged1",
				"*": "block/wood/planks/{wood}*"
			}
		}
	},
	attributes: {
		canChisel: true,
		chiselShapeFromCollisionBox: true,
		handbook: {
			groupBy: ["plankslab-*"]
		},
		partialAttachableByType: {
			"*-down": true,
			"*-up": true,
		},
		liquidBarrierOnSidesByType: {
		   "*-down-*": [ 0.5, 0.5, 0.5, 0.5 ]
		}
	},
	blockmaterial: "Wood",
	creativeinventory: {
		"general": ["*-down-free"], "construction": ["*-down-free"]
	},
	drops: [{ code: "plankslab-{wood}-down-free" }],
	sideSolidOpaqueAoByType: {
		"*-north-*": { all: false, north: true },
		"*-east-*": { all: false, east: true },
		"*-south-*": { all: false, south: true },
		"*-west-*": { all: false, west: true },
		"*-up-*": { all: false, up: true },
		"*-down-*": { all: false, down: true }
	},
	// Tyron 19dec.2020, i'm not sure anymore why sideao was disabled for slabs, lets see what happens if we turn it on again ¯\\_(ツ)_/¯
	sideAo: { all: true },
	emitSideAoByType: {
		"*-up-*": { all: false, up: true },
		"*-down-*": { all: false, down: true },
		"*": { all: false }
	},
	collisionbox: { x1: 0, y1: 0, z1: 0,   x2: 1, y2: 0.5, z2: 1,
		rotateXByType: {
			"*-north-*": 90,
			"*-south-*": 270,
			"*-up-*": 180,
			"*-down-*": 0,
		},
		rotateZByType: {
			"*-east-*": 90,
			"*-west-*": 270,
		},
	},
	selectionbox: { x1: 0, y1: 0, z1: 0,   x2: 1, y2: 0.5, z2: 1,
		rotateXByType: {
			"*-north-*": 90,
			"*-south-*": 270,
			"*-up-*": 180,
			"*-down-*": 0,
		},
		rotateZByType: {
			"*-east-*": 90,
			"*-west-*": 270,
		},
	},
	sounds: {
		"hit": "block/planks",
		"break": "block/planks",
		"place": "block/planks",
		"walk": "walk/wood"
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 10,
	},
	materialDensity: 600,
	guiTransform: {
		translation: { x: 0, y: 2, z: 0 },
		origin: { x: 0.5, y: 0.25, z: 0.5 }
	},
	heldTpIdleAnimation: "holdbothhandslarge", heldRightReadyAnimation: "heldblockready", heldTpUseAnimation: "twohandplaceblock",
	tpHandTransform: {
		translation: { x: -1.49, y: -0.22, z: -0.7 },
		rotation: { x: 6, y: 16, z: 98 },
		origin: { x: 0.5, y: 0.25, z: 0.5 },
		scale: 0.4
	}
}
