{
	code: "toolmold",
	class: "Block",
	behaviors: [
		{ name: "GroundStorable", properties: { layout: 'SingleCenter' } },
		{ name: "Unplaceable", }, // The ground storable obsoletes this being a block. Should be an item, but is kept a block for backwards compatibility
		{ name: "RightClickPickup" }
	],
	variantgroups: [
		{ code: "color", states: ["blue", "red", "fire"] },
		{ code:"materialtype", states: ["raw"] },
		{ code:"tooltype", states: ["axe", "pickaxe", "shovel", "blade-falx", "hammer", "anvil", "helvehammer", "hoe", "prospectingpick", "lamellae", /*"bullets"*/] },
	],
	shapebytype: {
		"*-axe": { base: "block/clay/mold/{tooltype}", rotateY: 0 },
		"*-pickaxe": { base: "block/clay/mold/{tooltype}", rotateY: 180 },
		"*-anvil": { base: "block/clay/mold/{tooltype}", rotateY: 270 },
		"*": { base: "block/clay/mold/{tooltype}", rotateY: 90 },
	},
	textures: {  all: { base: "block/clay/{color}clay" } },
	attributes: {
		reinforcable: true,
		onTongTransformByType: {
			"toolmold-*-anvil": {
				translation: { x: -0.9, y: -1.2, z: -0.94 },
				rotation: { x: -6, y: 93, z: -34 },
				scale: 0.74
			},
			"*": {
				translation: { x: -0.9, y: -1.5, z: -0.6 },
				rotation: { x: 117, y: 0, z: 0 },
				scale: 0.74
			}
		},
		shelvableByType: {
			"*-helvehammer": "SingleCenter",
			"*": false
		},
		handbook: {
			groupBy: ["toolmold-*-{materialtype}-{tooltype}"]
		},
		tongOpeningByType: {
			"toolmold-*-raw-anvil": "wide",
			"toolmold-*-raw-helvehammer": "medium"
		},
		onMetalTongTransformByType: {
			"toolmold-*-raw-anvil": {
				translation: { x: -1.55, y: -0.87, z: -0.84 },
				rotation: { x: -93, y: -9, z: 1 },
				scale: 0.75
			},
			"toolmold-*-raw-helvehammer": {
				translation: { x: -1.7, y: -0.36, z: -0.9 },
				rotation: { x: -6, y: -2, z: -9 },
				origin: { x: 0.5, y: 0.1, z: 0.5 },
				scale: 0.65
			},
			"*": {
				translation: { x: -2.1, y: -0.19, z: -1 },
				rotation: { x: 180, y: 7, z: 4 },
				origin: { x: 0.5, y: 0, z: 0.5 },
				scale: 0.55
			}
		}
	},
	attributesByType:{
		"toolmold-red-raw-*":{
			beehivekiln:{
				"0": { "type": "block", "code": "toolmold-tan-fired-{tooltype}" },
				"1": { "type": "block", "code": "toolmold-orange-fired-{tooltype}" },
				"2": { "type": "block", "code": "toolmold-red-fired-{tooltype}" },
				"3": { "type": "block", "code": "toolmold-brown-fired-{tooltype}" }
			}
		},
		"toolmold-blue-raw-*":{
			beehivekiln:{
				"0": { "type": "block", "code": "toolmold-cream-fired-{tooltype}"},
				"1": { "type": "block", "code": "toolmold-gray-fired-{tooltype}"},
				"2": { "type": "block", "code": "toolmold-black-fired-{tooltype}"},
				"3": { "type": "block", "code": "toolmold-black-fired-{tooltype}"}
			}
		},
		"toolmold-fire-raw-*":{
			beehivekiln:{
				"0": { "type": "block", "code": "toolmold-fire-fired-{tooltype}"},
				"1": { "type": "block", "code": "toolmold-fire-fired-{tooltype}"},
				"2": { "type": "block", "code": "toolmold-fire-fired-{tooltype}"},
				"3": { "type": "block", "code": "toolmold-fire-fired-{tooltype}"}
			}
		}
	},
	combustiblePropsByType: {
		"toolmold-fire-raw-*": {
			meltingPoint: 650,
			meltingDuration: 45,
			smeltedRatio: 1,
			smeltingType: "fire",
			smeltedStack: { type: "block", code: "toolmold-fire-fired-{tooltype}" },
			requiresContainer: false
		},
		"toolmold-blue-raw-*": {
			meltingPoint: 650,
			meltingDuration: 45,
			smeltedRatio: 1,
			smeltingType: "fire",
			smeltedStack: { type: "block", code: "toolmold-blue-fired-{tooltype}" },
			requiresContainer: false
		},
		"toolmold-red-raw-*": {
			meltingPoint: 650,
			meltingDuration: 45,
			smeltedRatio: 1,
			smeltingType: "fire",
			smeltedStack: { type: "block", code: "toolmold-earthyorange-fired-{tooltype}" },
			requiresContainer: false
		}
	},
	blockmaterial: "Ceramic",
	creativeinventory: { "general": ["*"], "construction": ["*"] },
	replaceable: 700,
	resistance: 1.5,
	maxStackSize: 8,
	lightAbsorption: 0,
	sounds: {
		walk: "walk/stone",
	},
	collisionboxByType: {
		"*-anvil": { x1: 0, y1: 0, z1: 0.125, x2: 1, y2: 0.6875, z2: 0.875 },
		"*-helvehammer": { x1: 0.219, y1: 0, z1: 0.1875, x2: 0.781, y2: 0.1875, z2: 0.8125 },
		"*": { x1: 0.0625, y1: 0, z1: 0.0625, x2: 0.9375, y2: 0.125, z2: 0.9375 },
	},
	selectionboxByType: {
		"*-anvil": { x1: 0, y1: 0, z1: 0.125, x2: 1, y2: 0.6875, z2: 0.875 },
		"*-helvehammer": { x1: 0.219, y1: 0, z1: 0.1875, x2: 0.781, y2: 0.1875, z2: 0.8125 },
		"*": { x1: 0.0625, y1: 0, z1: 0.0625, x2: 0.9375, y2: 0.125, z2: 0.9375 },
	},
	sideopaque: {
		all: false
	},
	sidesolid: {
		all: false
	},
	heldTpIdleAnimationByType: {
		"*-anvil": "holdbothhandslarge",
		"*-helvehammer": "holdbothhandslarge"
	},
	heldTpUseAnimationByType: {
		"*-anvil": "twohandplaceblock",
		"*-helvehammer": "twohandplaceblock"
	},
	guiTransformByType: {
		"*-anvil": {
			translation: { x: 0, y: 3, z: 0 },
			origin: { x: 0.5, y: 0.3, z: 0.5 },
			scale: 1.33
		},
		"*-helvehammer": {
			origin: { x: 0.5, y: 0.18, z: 0.5 },
			scale: 1.8
		},
		"*": {
			translation: { x: 0, y: 3, z: 0 },
			origin: { x: 0.5, y: 0.0625, z: 0.5 },
			scale: 1.33
		}
	},
	tpHandTransformByType: {
		"*-anvil": {
			translation: { x: -0.5, y: -0, z: -0.45 },
			rotation: { x: -77, y: 14, z: -102 },
			origin: { x: 0.5, y: 0.125, z: 0.5 },
			scale: 0.7
		},
		"*-helvehammer": {
			translation: { x: -0.8, y: -0, z: -0.3 },
			rotation: { x: 12, y: 12, z: -92 },
			origin: { x: 0.5, y: 0.125, z: 0.5 },
			scale: 0.8
		},
		"*": {
			translation: { x: -1, y: -0.6, z: -1.05 },
			rotation: { x: -87, y: 9, z: 4 },
			origin: { x: 0.5, y: 0.125, z: 0.5 },
			scale: 0.5
		}
	},
	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.2
	}
}
