{
	code: "pie",
	class: "BlockPie",
	behaviors: [
		{ name: "UnstableFalling"},
		{ name: "SneakPlacing" },
		{ name: "RightClickPickup" }
	],
	entityClass: "Pie",
	maxstacksize: 32,
	// The valid pie fillings are defined in each ingredients json file
	variantgroups: [
		{ code: "state", states: ["raw", "partbaked", "perfect", "charred" ] }
	],
	shape: { base: "block/basic/invisible" },
	creativeinventory: { "general": [""], "items": [""] },
	creativeinventoryStacksByType: {
		"pie-raw": [
			{
				tabs: [ "general", "decorative" ],
				stacks: [
					{ type: "block", code: "game:pie-perfect", attributes: { 
						"ucontents": [ { "type": "item", "code": "dough-spelt", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "dough-spelt", "stackSize": 2 } ], 
						"pieSize": 4, "topCrustType": 1, "bakeLevel": 2 } 
					},
					{ type: "block", code: "game:pie-partbaked", attributes: { 
						"ucontents": [ { "type": "item", "code": "dough-spelt", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "dough-spelt", "stackSize": 2 } ], 
						"pieSize": 4, "topCrustType": 1, "bakeLevel": 1 } 
					},
					{ type: "block", code: "game:pie-raw", attributes: { 
						"ucontents": [ { "type": "item", "code": "dough-spelt", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "fruit-redapple", "stackSize": 2}, { "type": "item", "code": "dough-spelt", "stackSize": 2 } ], 
						"pieSize": 4, "topCrustType": 1, "bakeable": true }
					}
				]
			}
		]
	},
	attributes: {
		handbook: {
			ignoreCreativeInvStacks: true,
			exclude: true
		},
		onShelfQuarterTransform: {
			translation: { x: 0.1375, y: 0, z: 0.1375 },
			origin: { x: 0.5, y: 0, z: 0.5 }
		},
		onShelfHalfTransform: {
			translation: { x: 0.1375, y: 0, z: 0 },
			origin: { x: 0.5, y: 0, z: 0.5 }
		},
		onShelfFullTransform: {
			rotation: { x: 0, y: 40, z: 0 },
			origin: { x: 0.5, y: 0, z: 0.5 }
		},
		bakingPropertiesByType: {
		"*-raw":  {
			LargeItem: true,
			temp: 160,
			levelFrom: 0.0,
			startScaleY: 0.9,
			endScaleY: 0.95,
			levelTo: 0.25,
			resultCode: "pie-partbaked"
		},
		"*-partbaked":  {
			LargeItem: true,
			temp: 160,
			levelFrom: 0.25,
			levelTo: 0.5,
			startScaleY: 0.95,
			endScaleY: 1.10,
			resultCode: "pie-perfect",
			initialCode: "pie-raw"
		},
		"*-perfect":  {
			LargeItem: true,
			temp: 160,
			levelFrom: 0.5,
			levelTo: 0.75,
			startScaleY: 1.10,
			endScaleY: 1.13,
			resultCode: "pie-charred",
			initialCode: "pie-partbaked"
		},
		"*-charred":  {
			LargeItem: true,
			temp: 160,
			levelFrom: 0.75,
			levelTo: 1,
			startScaleY: 1.13,
			endScaleY: 1.11,
			initialCode: "pie-perfect"
		}},
		nutritionMulByType: {
			"*-partbaked": 0.9,
			"*-perfect": 1,
			"*-charred": 0.8
		}
	},
	transitionablePropsByType: {
		"*-raw":  [{
			type: "Perish",
			freshHours: { avg: 48 },
			transitionHours: { avg: 36 },
			transitionedStack: { type: "item", code: "rot" },
			transitionRatio: 1
		}],
		"*-partbaked":  [{
			type: "Perish",
			freshHours: { avg: 120 },
			transitionHours: { avg: 36 },
			transitionedStack: { type: "item", code: "rot" },
			transitionRatio: 1
		}],
		"*-perfect":  [{
			type: "Perish",
			freshHours: { avg: 192 },
			transitionHours: { avg: 36 },
			transitionedStack: { type: "item", code: "rot" },
			transitionRatio: 1
		}],
		"*-charred":  [{
			type: "Perish",
			freshHours: { avg: 288 },
			transitionHours: { avg: 36 },
			transitionedStack: { type: "item", code: "rot" },
			transitionRatio: 1
		}]
	},
	materialDensity: 200,
	sideOpaque: { all: false },
	sideSolid: { all: false },
	sideAo: { all: false },
	emitSideAo: { all: false },
	collisionSelectionBox: { x1: 0.1875, y1: 0, z1: 0.1875, x2: 0.8125, y2: 0.1875, z2: 0.8125 },
	heldTpIdleAnimation: "holdbothhands",
	drops: [],
	guiTransform: {
		translation: { x: 1, y: 0, z: 0 },
		rotation: { x: -14, y: -60, z: 13 },
		origin: { x: 0.5, y: 0.1, z: 0.5 },
		scale: 2.38
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: 0, z: 1 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 4.5
	},
	tpHandTransform: {
		translation: { x: -0.86, y: -0.14, z: -0.57 },
		rotation: { x: -49, y: 29, z: -112 },
		origin: { x: 0.5, y: 0.13, z: 0.5 },
		scale: 0.7
	},
}
