{
	code: "bed",
	class: "BlockBed",
	entityClassByType: {
		"*-head-*": "Bed",
	},
	variantgroups: [
		{ code: "material", states: ["wood", "hay", "woodaged", "village"] },
		{ code: "part", states: ["head", "feet"] },
		{ code: "side", loadFromProperties: "abstract/horizontalorientation" }
	],
	attributes: {
		sleepEfficiencyByType: {
			"bed-wood-*": 0.70833333,
			"bed-hay-*": 0.58333333,
			"bed-woodaged-*": 0.79166666,
			"*": 0.70833333
		},
		handbook: {
			groupBy: ["bed-{material}-*"]
		},
	},
	attributesByType: {
		"bed-hay-*": {
			attachableToEntity: {
				categoryCode: "bedroll",
				attachedShape: { base: "block/hay/strawbed-inventory" }
			}
		}
	},
	shapeinventoryByType: {
		"bed-hay-*": { base: "block/hay/strawbed-inventory" },
		"*": { base: "block/wood/bed/{material}-inventory" }
	},
	shapebytype: {
		"*-hay-head-north": { base: "block/{material}/bed-head", rotateY: 90 },
		"*-hay-head-east": { base: "block/{material}/bed-head", rotateY: 0 },
		"*-hay-head-south": { base: "block/{material}/bed-head", rotateY: 270 },
		"*-hay-head-west": { base: "block/{material}/bed-head", rotateY: 180 },
		"*-hay-feet-north": { base: "block/{material}/bed-feet", rotateY: 90 },
		"*-hay-feet-east": { base: "block/{material}/bed-feet", rotateY: 0 },
		"*-hay-feet-south": { base: "block/{material}/bed-feet", rotateY: 270 },
		"*-hay-feet-west": { base: "block/{material}/bed-feet", rotateY: 180 },

		"*-head-north": { base: "block/wood/bed/{material}-head", rotateY: 90 },
		"*-head-east": { base: "block/wood/bed/{material}-head", rotateY: 0 },
		"*-head-south": { base: "block/wood/bed/{material}-head", rotateY: 270 },
		"*-head-west": { base: "block/wood/bed/{material}-head", rotateY: 180 },
		"*-feet-north": { base: "block/wood/bed/{material}-feet", rotateY: 90 },
		"*-feet-east": { base: "block/wood/bed/{material}-feet", rotateY: 0 },
		"*-feet-south": { base: "block/wood/bed/{material}-feet", rotateY: 270 },
		"*-feet-west": { base: "block/wood/bed/{material}-feet", rotateY: 180 },
	},
	sidesolid: {
		all: false
	},
	sideopaque: {
		all: false
	},
	heldTpIdleAnimation: "holdunderarm",
	creativeinventory: { "general": ["*-head-north"], "decorative": ["*-head-north"] },
	blockmaterial: "Wood",
	replaceable: 550,
	resistance: 2,
	lightAbsorption: 0,
	maxStackSize: 2,
	guitransform: {
		scale: 0.75,
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 40,
	},
	selectionbox: { x1: 0, y1: 0, z1: 0, x2: 1, y2ByType: { "bed-hay-*": 0.25, "*" : 0.5  }, z2: 1},
	collisionbox: { x1: 0, y1: 0, z1: 0, x2: 1, y2ByType: { "bed-hay-*": 0.25, "*" : 0.5  }, z2: 1},
	sounds: {
		"place": "block/planks",
		"hit": "block/planks",
		"break": "block/planks",
		"walk": "walk/wood"
	},
	materialDensity: 600,
	groundTransform: {
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 2
	},
	tpHandTransformByType: {
		"bed-hay-*": {
			translation: { x: -0.85, y: 0.1, z: -0.1 },
			rotation: { x: 0, y: 87, z: 2 },
			scale: 0.9
		},
		"*": {
			translation: { x: -0.9, y: -0.3, z: -0.9 },
			rotation: { x: -80, y: -37, z: 17 },
			scale: 0.45
		}
	},
	guiTransformByType: {
		"bed-hay-*": {
			translation: { x: 0, y: 2, z: 0 },
			origin: { x: 0.5, y: -0.075, z: 0.6 },
			scale: 1.58,
			rotate: false
		},
		"bed-wood-*": {
			origin: { x: 0.5, y: 0.4, z: 0.5 },
			scale: 0.75
		}
	}
}
