{
	code: "torch",
	tagsByType: {
		"*-lit-*": ["has-open-fire"],
		"*": []
	},
	class: "BlockTorch",
	behaviorsbyType: {
		"*-lit-*": [{name: "CanIgnite"}]
	},
	entityBehaviorsByType: {
		"*-lit-*": [ { name: "TemperatureSensitive" } ],
	},
	entityClassByType: {
		"*-lit-*": "Torch",
	},
	attackRange: 2,
	storageFlags: 257,
	variantgroups: [
		{ code: "type", states: ["crude", "basic", "cloth"] },
		{ code: "state", states: ["extinct", "burnedout", "lit"] },
		{ code: "orientation", states: ["up"], loadFromProperties: "abstract/horizontalorientation" }
	],
	allowedVariants: ["torch-basic-*"],
	heldRightTpIdleAnimationbyType: {
		"*-lit-*": "holdinglanternrighthand"
	},
	heldLeftTpIdleAnimationbyType: {
		"*-lit-*": "holdinglanternlefthand"
	},
	heldTpUseAnimationbyType: {
		"*-lit-*": "interactstatic"
	},
	attributes: {
		transientPropsbyType: {
			"*-crude-lit-*": {
				convertFrom: "torch-crude-lit-*", 
				convertTo: "torch-crude-burnedout-*",
				inGameHours: "24"
			},
			"*-basic-lit-*": {
				convertFrom: "torch-basic-lit-*", 
				convertTo: "torch-basic-burnedout-*",
				inGameHours: "48"
			},
			"*-cloth-lit-*": {
				convertFrom: "torch-cloth-lit-*", 
				convertTo: "torch-cloth-burnedout-*",
				inGameHours: "72"
			}
		},
		handbook: {
			groupBy: ["torch-*"]
		},
		attachmentAreas: {
			"down": { x1: 7, y1: 15, z1: 7, x2: 8, y2: 16, z2: 8 },
			"north": { x1: 6, y1: 0, z1: 15, x2: 10, y2: 5, z2: 15, rotateY: 180 },
			"east": { x1: 6, y1: 0, z1: 15, x2: 10, y2: 5, z2: 15, rotateY: 270 },
			"south": { x1: 6, y1: 0, z1: 15, x2: 10, y2: 5, z2: 15, rotateY: 0 },
			"west": { x1: 6, y1: 0, z1: 15, x2: 10, y2: 5, z2: 15, rotateY: 90 }
		}
	},
	shapebytype: {
		"*-up": { base: "block/wood/torch/{type}-{state}-ground" },
		"*-north": { base: "block/wood/torch/{type}-{state}-wall", rotateY: 0 },
		"*-east": { base: "block/wood/torch/{type}-{state}-wall", rotateY: 270 },
		"*-south": { base: "block/wood/torch/{type}-{state}-wall", rotateY: 180 },
		"*-west": { base: "block/wood/torch/{type}-{state}-wall", rotateY: 90 }
	},
	doNotRenderAtLod2: true,
	sidesolid: {
		all: false
	},
	sideopaque: {
		all: false
	},
	creativeinventory: { "general": ["*-up"], "decorative": ["*-up"] },
	replaceable: 5001,
	resistance: 0,
	lightAbsorption: 0,
	lightHsvbyType: {
		"*-crude-lit-*": [4, 4, 14],
		"*-basic-lit-*": [4, 4, 14],
		"*-cloth-lit-*": [4, 4, 15]
	},
	particlePropertiesbyType: {
		"*-lit-*":[
		{
			// Ember cubicles
			hsvaColor: [{ avg: 20, var: 20 }, { avg: 255, var: 50 }, { avg: 255, var: 50 },  { avg: 255, var: 0 }],
			gravityEffect: { dist: "invexp", avg: -0.07, var: 0.4 },
			posOffsetByType: {
				"*-lit-up": [ { avg: 0, var: 0.1 }, { avg: -0.2, var: 0 }, { avg: 0, var: 0.1 }],
				"*-lit-north": [ { avg: 0, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: -0.09, var: 0.1 }],
				"*-lit-east": [ { avg: 0.09, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: 0, var: 0.1 }],
				"*-lit-south": [ { avg: 0, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: 0.09, var: 0.1 }],
				"*-lit-west": [ { avg: -0.09, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: 0, var: 0.1 }],
			},
			velocity: [ { avg: 0, var: 0.15 }, { avg: 0.5, var: 0.1 }, { avg: 0, var: 0.15 }],
			quantity: { avg: 0.025 },
			size: { avg: 0.4, var: 0 },
			sizeEvolve: { transform: "quadratic", factor: -0.7 },
			lifeLength: { avg: 1.5 },
			vertexFlags: 128,
			windAffectednes: 0.2
		},
		{
			// Smoke quads
			hsvaColor: [{ avg: 0, var: 0 }, { avg: 0, var: 0 }, { avg: 40, var: 30 },  { avg: 190, var: 30 }],
			opacityEvolve: { transform: "quadratic", factor: -16 },
			gravityEffect: { avg: 0, var: 0 },
			posOffsetByType: {
				"*-lit-up": [ { avg: 0, var: 0.1 }, { avg: -0.2, var: 0 }, { avg: 0, var: 0.1 }],
				"*-lit-north": [ { avg: 0, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: -0.09, var: 0.1 }],
				"*-lit-east": [ { avg: 0.09, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: 0, var: 0.1 }],
				"*-lit-south": [ { avg: 0, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: 0.09, var: 0.1 }],
				"*-lit-west": [ { avg: -0.09, var: 0.1 }, { avg: -0.23, var: 0 }, { avg: 0, var: 0.1 }],
			},
			velocity: [ { avg: 0, var: 0.025 }, { avg: 0.15, var: 0.1 }, { avg: 0, var: 0.025 }],
			quantity: { avg: 0.15 },
			size: { avg: 0.25, var: 0.05 },
			sizeEvolve: { transform: "linear", factor: 0.5 },
			particleModel: "Quad",
			windAffectednes: 0.7
		},
		{
			// Fire quads
			hsvaColor: [{ avg: 20, var: 20 }, { avg: 255, var: 50 }, { avg: 255, var: 50 },  { avg: 255, var: 0 }],
			opacityEvolve: { transform: "quadratic", factor: -20 },
			gravityEffect: { avg: 0, var: 0 },
			posOffsetByType: {
				"*-lit-up": [ { avg: 0, var: 0.15 }, { avg: -0.2, var: 0 }, { avg: 0, var: 0.15 }],
				"*-lit-north": [ { avg: 0, var: 0.15 }, { avg: -0.23, var: 0 }, { avg: -0.09, var: 0.15 }],
				"*-lit-east": [ { avg: 0.09, var: 0.15 }, { avg: -0.23, var: 0 }, { avg: 0, var: 0.15 }],
				"*-lit-south": [ { avg: 0, var: 0.15 }, { avg: -0.23, var: 0 }, { avg: 0.09, var: 0.15 }],
				"*-lit-west": [ { avg: -0.09, var: 0.15 }, { avg: -0.23, var: 0 }, { avg: 0, var: 0.15 }],
			},
			velocity: [ { avg: 0, var: 0.025 }, { avg: 0.45, var: 0.07 }, { avg: 0, var: 0.025 }],
			quantity: { avg: 6 },
			size: { avg: 0.35, var: 0.05 },
			lifeLength: { avg: 0.15 },
			sizeEvolve: { transform: "linear", factor: 0.25 },
			particleModel: "Quad",
			vertexFlags: 128,
			windAffectednes: 0.5
		}
		]
	},
	collisionbox: null,
	selectionboxbytype: {
		"*-up": { x1: 0.375, y1: 0, z1: 0.375, x2: 0.625, y2: 0.8875, z2: 0.625 },
		"*-east":{ x1: 0.4, y1: 0.1875, z1: 0.5625, x2: 0.6125, y2: 0.9, z2: 1, rotateY: 270 },
		"*-south": { x1: 0.4, y1: 0.1875, z1: 0.5625, x2: 0.6125, y2: 0.9, z2: 1, rotateY: 180 },
		"*-west": { x1: 0.4, y1: 0.1875, z1: 0.5625, x2: 0.6125, y2: 0.9, z2: 1, rotateY: 90 },
		"*-north": { x1: 0.4, y1: 0.1875, z1: 0.5625, x2: 0.6125, y2: 0.9, z2: 1, rotateY: 0 }
	},
	blockmaterial: "Wood",
	guiTransform: {
		rotation: { x: -47, y: 30, z: 15 },
		origin: { x: 0.5, y: 0.46, z: 0.5 },
		scale: 2.02
	},
	tpHandTransform: {
		translation: { x: -0.73, y: 0.08, z: -0.88 },
		rotation: { x: 0, y: -178, z: 100 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 0.55
	},
	tpOffHandTransform: {
		translation: { x: -0.75, y: 0.06, z: -0.99 },
		rotation: { x: 0, y: 179, z: 104 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 0.55
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: -1, z: 90 },
		origin: { x: 0.44, y: 0.25, z: 0.5 },
		scale: 2.8
	},
	combustiblePropsbyType: {
		"*-lit-up": {
			burnTemperature: 600,
			burnDuration: 8,
		},
		"*-extinct-up": {
			burnTemperature: 600,
			burnDuration: 8,
			meltingPoint: 300,
			meltingDuration: 1,
			smeltedRatio: 1,
			smeltingType: "convert",
			smeltedStack: { type: "block", code: "torch-{type}-lit-up" },
			requiresContainer: false
		}
	},
	sounds: {
		"place": "block/planks",
		"break": "block/planks",
		"hit": "block/planks"
	},
	heldSoundsbyType: {
		"*-lit-*": {
			"idle": "held/torch-idle",
			"equip": "held/torch-equip",
			"unequip": "held/torch-unequip",
			"attack": "held/torch-attack",
			"invpickup": "held/torch-equip",
			"invplace": "held/torch-unequip"
		}
	},
	dropsByType: {
		"*-burnedout-*": []
	},
	rainPermeable: true,
	materialDensity: 600
}
