{
	code: "crystal",
	class: "BlockCrystal",
	storageFlags: 5,
	behaviors: [{name: "OmniAttachable", properties: { facingCode: "position" }}],
	attributes: {
		displaycaseable: true, 
		shelvable: true,
		handbook: {
			groupByByType: {
				"*-large*" : ["crystal-*-{variant}-*"],
				"*-cluster*" : ["crystal-*-{variant}-*"]
			}
		}
	},
	variantgroups: [
		{ code: "type", states: ["milkyquartz", "rosequartz", "smokyquartz", "amethyst", "olivine"] },
		{ code: "variant", states: ["large1", "large2", "cluster1", "cluster2"] },
		{ code:"position", states: ["up", "down"], loadFromProperties: "abstract/horizontalorientation" }
	],
	shapebytype: {
		"*-up": { base: "block/stone/mineral/{variant}" },
		"*-down": { base: "block/stone/mineral/{variant}", rotateX: 180 },
		"*-north": { base: "block/stone/mineral/{variant}", rotateX: 90, rotateZ: 180 },
		"*-east": { base: "block/stone/mineral/{variant}", rotateX: 90, rotateZ: 270 },
		"*-south": { base: "block/stone/mineral/{variant}", rotateX: 90, rotateZ: 0 },
		"*-west": { base: "block/stone/mineral/{variant}", rotateX: 90, rotateZ: 90 }
	},
	texturesByType: {
		"crystal-milkyquartz-*": {
			"material-top": { base: "block/stone/mineral/milkyquartz-top" },
			"material": { base: "block/stone/mineral/milkyquartz" }
		},
		"crystal-rosequartz-*": {
			"material-top": { base: "block/stone/mineral/rosequartz-top" },
			"material": { base: "block/stone/mineral/rosequartz" }
		},
		"crystal-smokyquartz-*": {
			"material-top": { base: "block/stone/mineral/smokyquartz" },
			"material": { base: "block/stone/mineral/smokyquartz" }
		},
		"crystal-amethyst-*": {
			"material-top": { base: "block/stone/mineral/amethyst" },
			"material": { base: "block/stone/mineral/amethyst" }
		},
		"crystal-olivine-*": {
			"material-top": { base: "block/stone/mineral/olivine" },
			"material": { base: "block/stone/mineral/olivine" }
		}
	},
	creativeinventory: { "general": ["*-up"], "terrain": ["*-up"] },
	lightAbsorption: 0,
	drawtype: "json",
	replaceable: 90,
	requiredMiningTier: 2,
	sidesolid: { all: false },
	sideopaque: { all: false },
	sideao: { all: false },
	vertexFlags: {
		zOffset: 2,
		reflective: true
	},	
	sounds: {
		walk: "walk/stone",
		byTool: {
			"Pickaxe": { hit: "block/rock-hit-pickaxe", break: "block/rock-break-pickaxe" }
		}
	},
	drops: [
		{
			type: "block", 
			code: "crystal-{type}-{variant}-up",
			quantity: { avg: 1, var: 0 } 
		},
	],
	collisionSelectionBoxByType: {
		"*-up": { x1: 0.125, y1: 0, z1: 0.125, x2: 0.875, y2: 0.5, z2: 0.875 },
		"*-down": { x1: 0.125, y1: 0, z1: 0.125, x2: 0.875, y2: 0.5, z2: 0.875, rotateX: 180 },
		"*-west": { x1: 0.6, y1: 0.125, z1: 0.125, x2: 1, y2: 0.875, z2: 0.875 },
		"*-north": { x1: 0.6, y1: 0.125, z1: 0.125, x2: 1, y2: 0.875, z2: 0.875, rotateY: 270 },
		"*-east": { x1: 0.6, y1: 0.125, z1: 0.125, x2: 1, y2: 0.875, z2: 0.875, rotateY: 180 },
		"*-south": { x1: 0.6, y1: 0.125, z1: 0.125, x2: 1, y2: 0.875, z2: 0.875, rotateY: 90 }
	},
	guiTransform: {
		rotation: { x: -46, y: -89, z: -44 },
		origin: { x: 0.5, y: 0.35, z: 0.5 },
		scale: 1.44
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: -45, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 2.7
	},
	tpHandTransform: {
		translation: { x: -0.87, y: 0, z: -0.76 },
		rotation: { x: 0, y: -25, z: -59 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 0.6
	}
}
