{
	code: "chandelier",
	// BlockChandelier handles the placing of candles on the chandelier
	class: "BlockChandelier",
	behaviors: [
	 { name: "UnstableFalling", properties: { 
		attachableFaces: ["up", "down"],
		impactDamageMul: 10,
		attachmentAreas: {
			"down": { x1: 7, y1: 15, z1: 7, x2: 8, y2: 15, z2: 8 },
			"up": { x1: 7, y1: 0, z1: 7, x2: 8, y2: 0, z2: 8 }
		}
	 }}
	],
	variantgroups: 
	[
		{ code: "type", states: ["candle0", "candle1", "candle2", "candle3", "candle4", "candle5", "candle6", "candle7", "candle8"] }
	],
	shape: { base: "block/metal/chandelier/{type}" },
	textures: {
		"blackbronze": { base: "block/metal/chandelier/blackbronze" },
		"candle": { base:"block/candle" }
	},
	creativeinventory: { "general": ["*-candle0", "*-candle8"], "decorative": ["*-candle0", "*-candle8"] },
	drawtype: "json",
	blockmaterial: "Metal",
	sidesolid: { all: false },
	sideopaque: { all: false },
	resistance: 3,
	lightHsvByType: {
		"chandelier-candle0": [7, 7, 0],
		"chandelier-candle1": [7, 7, 10],
		"chandelier-candle2": [7, 7, 12],
		"chandelier-candle3": [7, 7, 14],
		"chandelier-candle4": [7, 7, 16],
		"chandelier-candle5": [7, 7, 18],
		"chandelier-candle6": [7, 7, 20],
		"chandelier-candle7": [7, 7, 22],
		"chandelier-candle8": [7, 7, 24]
	},
	drops: [
		{
			type: "item", 
			code: "candle", 
			quantityByType:  {
				"*0": { avg: 0 },
				"*1": { avg: 1 },
				"*2": { avg: 2 },
				"*3": { avg: 3 },
				"*4": { avg: 4 },
				"*5": { avg: 5 },
				"*6": { avg: 6 },
				"*7": { avg: 7 },
				"*8": { avg: 8 }
			}
		},
		{
			type: "block",
			code: "chandelier-candle0"
		}
	],
	lightAbsorption: 0,
	collisionSelectionBox: { x1: 0.0625, y1: 0, z1: 0.0625, x2: 0.9375, y2: 1, z2: 0.9375 },
	sounds: {
		hit: "block/chandelier-hit",
		break: "block/chandelier-break",
	}
}