{
	code: "tapestry",
	class: "BlockTapestry",
	entityClass: "Tapestry",
	behaviors: [{name: "HorizontalAttachable"}],
	blockmaterial: "Cloth",
	attributes: {
		handbook: {
			exclude: true
		},
		// The loreChapterIds refer to the file 'tapestry', under config/lore, and the numbers are in sequential order of variants under 'pieces'. Creative mode command to get the pieces: /giveblock tapestry-north 1 { type: 'name1' } (single quotes should be double)
		loreChapterIds: {
			"ambush": 0,
			"nightfall": 1,
			"holy": 2,
			"salvation": 3,
			"rot": 4,
			"themorning": 5,
			"schematic-a": 6,
			"schematic-b": 7,
			"schematic-c": 8,
			"schematic-c-bloody": 8,
			"schematic-d": 9,
			"rotbeast": 10,
			"seraphim": 11,
			"blackguard": 12,
			"forlorn": 13,
			"gate": 14,
			"diet": 15,
			"oldworld": 16,
			"temporality": 17,
			"aid-arm": -1,
			"aid-head": -1,
			"aid-leg": -1,
			"contracts": -1,
			"eidolon": -1,
			"glider": -1,
			"notice-blackguard": -1,
			"return": -1,
			"rickbat": -1,
			"symptoms": -1,
			"tempstorm": -1,
			"translocator": -1,
		},
		sizes: {
			"ambush": "3x1",
			"nightfall": "3x1",
			"holy": "1x2",
			"salvation": "2x2",
			"rot": "3x1",
			"themorning": "3x1",
			"schematic-a": "2x2",
			"schematic-b": "2x2",
			"schematic-c": "1x2",
			"schematic-c-bloody": "1x2",
			"schematic-d": "2x2",
			"rotbeast": "2x2",
			"seraphim": "3x1",
			"blackguard": "2x2",
			"forlorn": "1x2",
			"gate": "4x1",
			"diet": "2x1",
			"oldworld": "1x3",
			"temporality": "1x2",
			"aid-arm": "1x2",
			"aid-head": "1x2",
			"aid-leg": "1x2",
			"contracts": "2x1",
			"eidolon": "1x2",
			"glider": "3x1",
			"notice-blackguard": "1x1",
			"return": "1x2",
			"rickbat": "1x2",
			"symptoms": "2x2",
			"tempstorm": "2x2",
			"translocator": "2x2",
		},
		tapestryGroups: [
			["notice-blackguard"],
	
			[ "holy1", "schematic-c1", "schematic-c-bloody1", "forlorn1", "eidolon1", "return1", "rickbat1", "temporality1"],
			[ "holy2", "schematic-c2", "schematic-c-bloody2", "forlorn2", "eidolon2", "return2", "rickbat2", "temporality2"],
			
			["diet1", "contracts1"],
			["diet2", "contracts2"],

			[ "rot1", "ambush1", "nightfall1", "seraphim1", "themorning1"],
			[ "rot2", "ambush2", "nightfall2", "seraphim2", "themorning2"],
			[ "rot3", "ambush3", "nightfall3", "seraphim3", "themorning3"],
			
			["oldworld1"],
			["oldworld2"],
			["oldworld3"],
			
			[ "salvation11", "schematic-a11", "schematic-b11", "schematic-d11", "rotbeast11", "blackguard11", "tempstorm11", "translocator11"],
			[ "salvation12", "schematic-a12", "schematic-b12", "schematic-d12", "rotbeast12", "blackguard12", "tempstorm12", "translocator12"],
			[ "salvation21", "schematic-a21", "schematic-b21", "schematic-d21", "rotbeast21", "blackguard21", "tempstorm21", "translocator21"],
			[ "salvation22", "schematic-a22", "schematic-b22", "schematic-d22", "rotbeast22", "blackguard22", "tempstorm22", "translocator22"],
			
			["gate1"],
			["gate2"],
			["gate3"],
			["gate4"],
		]
	},
	variantgroups: [
		{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
	],
	creativeinventory: {  },
	notCreativeinventoryStacksByType: {
		"*-north": [
			{
				tabs: [ "general", "clutter" ],
				stacks: [
					{ type: "block", code: "tapestry-north", attributes: { type: "ambush1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "ambush2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "ambush3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "nightfall1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "nightfall2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "nightfall3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "holy1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "holy2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "salvation11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "salvation12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "salvation21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "salvation22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "rot1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "rot2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "rot3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "themorning1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "themorning2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "themorning3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-a11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-a12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-a21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-a22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-b11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-b12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-b21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-b22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-c1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-c2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-c-bloody1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-c-bloody2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-d11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-d12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-d21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "schematic-d22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "rotbeast11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "rotbeast12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "rotbeast21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "rotbeast22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "seraphim1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "seraphim2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "seraphim3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "blackguard11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "blackguard12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "blackguard21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "blackguard22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "forlorn1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "forlorn2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "gate1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "gate2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "gate3" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "gate4" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "diet1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "diet2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "oldworld1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "oldworld2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "oldworld3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "temporality1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "temporality2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "aid-arm1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "aid-arm2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "aid-head1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "aid-head2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "aid-leg1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "aid-leg2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "contracts1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "contracts2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "eidolon1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "eidolon2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "glider1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "glider2" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "glider3" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "notice-blackguard" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "rickbat1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "rickbat2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "return1" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "return2" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "symptoms11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "symptoms12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "symptoms21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "symptoms22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "translocator11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "translocator12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "translocator21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "translocator22" } },

					{ type: "block", code: "tapestry-north", attributes: { type: "tempstorm11" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "tempstorm12" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "tempstorm21" } },
					{ type: "block", code: "tapestry-north", attributes: { type: "tempstorm22" } },
				]
			}
		]
	},
	shapebytype: {
		"*-north": { base: "block/cloth/tapestry", rotateY: 0 },
		"*-east": { base: "block/cloth/tapestry", rotateY: 270 },
		"*-south": { base: "block/cloth/tapestry", rotateY: 180 },
		"*-west": { base: "block/cloth/tapestry", rotateY: 90 }
	},
	shapeinventory: {
		base: "block/cloth/tapestryinventory"
	},
	sidesolid: {
		all: false
	},
	sideopaque: {
		all: false
	},
	sideao: { all: true },
	emitsideao: { all: false },
	replaceable: 5001,
	lightAbsorption: 0,
	resistance: 0.1,
	collisionbox: null,
	selectionbox: {
		x1: 0, y1: 0, z1: 0,
		x2: 1, y2: 1, z2: 0.0625,
		rotateYByType: {
			"*-east": 270,
			"*-south": 180,
			"*-west": 90,
			"*-north": 0
		}
	},
	sounds: {
		"place": "block/cloth",
		"break": "block/cloth",
		"hit": "block/cloth"
	},
	guiTransform: {
		rotate: false,
		rotation: { x: -22.6, y: 25, z: 0 },
		scaleXyz: { x: -1.39, y: 1.39, z: 1.39 }
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 90, y: 0, z: 0 },
		origin: { x: 0.5, y: 0.5, z: 0.52 },
		scale: 2.75
	},
	tpHandTransform: {
		translation: { x: -1.1, y: -0.69, z: -1 },
		rotation: { x: 0, y: 12, z: -25 },
		scale: 0.43
	},
	rainPermeable: true,
	materialDensity: 600
}
