{
	code: "crystal",
	class: "BlockCrystal",
	storageFlags: 5,
	behaviors: [{name: "OmniAttachable", properties: { facingCode: "position" }}],
	attributes: {
		displaycaseable: true, 
		shelvable: true,
		handbook: {
			groupBy: [ "crystal-*-{variant}-*" ]
		}
	},
	variantgroups: [
		{ code: "type", states: ["milkyquartz", "rosequartz", "smokyquartz", "amethyst", "olivine"] },
		{ code: "variant", states: ["small1", "small2", "small3"] },
		{ 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 }
	},
	doNotRenderAtLod2: true,
	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.3, y1: 0, z1: 0.3, x2: 0.7, y2: 0.4, z2: 0.7 },
		"*-down": { x1: 0.3, y1: 0, z1: 0.3, x2: 0.7, y2: 0.4, z2: 0.7, rotateX: 180 },
		"*-west": { x1: 0.6, y1: 0.3, z1: 0.3, x2: 1, y2: 0.7, z2: 0.7 },
		"*-north": { x1: 0.6, y1: 0.3, z1: 0.3, x2: 1, y2: 0.7, z2: 0.7, rotateY: 270 },
		"*-east": { x1: 0.6, y1: 0.3, z1: 0.3, x2: 1, y2: 0.7, z2: 0.7, rotateY: 180 },
		"*-south": { x1: 0.6, y1: 0.3, z1: 0.3, x2: 1, y2: 0.7, z2: 0.7, 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
	}
}
