{
	code: "locustnest-metalspike",
	class: "BlockDamageOnTouch",
	creativeinventory: { general: ["*"], clutter: ["*"] },
	blockmaterial: "Metal",
	drawtype: "json",
	variantgroups: [
		{ code:"type", states: ["none", "none-upsidedown", "tiny", "small", "medium", "large"] },
	],
	attributes: {
		sprintIntoDamage: 1,
		fallIntoDamageMul: 15,
		immuneCreatures: ["locust-bronze", "locust-corrupt", "shiver-deep", "shiver-tainted", "shiver-corrupt", "shiver-nightmare", "shiver-stilt", "shiver-bellhead", "shiver-deepsplit"],
		damageType: "PiercingAttack",
		damageTier: 1
	},
	shapeByType: {
		"*-tiny": {
			base: "block/locustnest/metalspikes/pile-tiny-spiked",
			alternates: [
				{ base: "block/locustnest/metalspikes/pile-tiny-spiked", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/pile-tiny-spiked", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/pile-tiny-spiked", rotateY: 225 }
			]
		},
		"*-small": {
			base: "block/locustnest/metalspikes/pile-small-spiked",
			alternates: [
				{ base: "block/locustnest/metalspikes/pile-small-spiked", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/pile-small-spiked", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/pile-small-spiked", rotateY: 225 }
			]
		},
		"*-medium": {
			base: "block/locustnest/metalspikes/pile-medium-spiked",
			alternates: [
				{ base: "block/locustnest/metalspikes/pile-medium-spiked", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/pile-medium-spiked", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/pile-medium-spiked", rotateY: 225 }
			]
		},
		"*-large": {
			base: "block/locustnest/metalspikes/pile-large-spiked",
			alternates: [
				{ base: "block/locustnest/metalspikes/pile-large-spiked", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/pile-large-spiked", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/pile-large-spiked", rotateY: 225 }
			]
		},
		"*-none": {
			base: "block/locustnest/metalspikes/metalspikes1", 
			alternates: [
				{ base: "block/locustnest/metalspikes/metalspikes1", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/metalspikes1", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/metalspikes1", rotateY: 225 },
				
				{ base: "block/locustnest/metalspikes/metalspikes2" },
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateY: 225 },
				
				{ base: "block/locustnest/metalspikes/metalspikes3" },
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateY: 45 },
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateY: 90 },
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateY: 225 },
			]
		},
		"*-upsidedown": {
			base: "block/locustnest/metalspikes/metalspikes1", rotateZ: 180, 
			alternates: [
				{ base: "block/locustnest/metalspikes/metalspikes1", rotateZ: 180, rotateY: 45 },
				{ base: "block/locustnest/metalspikes/metalspikes1", rotateZ: 180, rotateY: 90 },
				{ base: "block/locustnest/metalspikes/metalspikes1", rotateZ: 180, rotateY: 225 },
				
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateZ: 180 },
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateZ: 180, rotateY: 45 },
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateZ: 180, rotateY: 90 },
				{ base: "block/locustnest/metalspikes/metalspikes2", rotateZ: 180, rotateY: 225 },
				
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateZ: 180 },
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateZ: 180,  rotateY: 45 },
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateZ: 180,  rotateY: 90 },
				{ base: "block/locustnest/metalspikes/metalspikes3", rotateZ: 180,  rotateY: 225 },
			]
		}		
	},
	doNotRenderAtLod2: true,
	walkspeedmultiplier: 0.25,
	lightAbsorption: 0,
	sidesolid: { all: false },
	sideopaque: { all: false },
	replaceable: 300,
	resistance: 20,
	materialDensity: 300,
	collisionbox: { x1: 0.125, y1: 0, z1: 0.125, x2: 0.875, y2: 0.125, z2: 0.875 },
	selectionBox: { x1: 0.125, y1: 0, z1: 0.125, x2: 0.875, y2: 0.875, z2: 0.875 },
	dropsByType: {
		"*-none": [],
		"*-tiny": [ 
			{ type: "block", code: "metal-scraps", quantity: { avg: 0.2 } }, 
			{ type: "block", code: "metal-parts", quantity: { avg: 0.02 } } 
		],
		"*-small": [ 
			{ type: "block", code: "metal-scraps", quantity: { avg: 0.5 } }, 
			{ type: "block", code: "metal-parts", quantity: { avg: 0.07 } } 
		],
		"*-medium": [ 
			{ type: "block", code: "metal-scraps", quantity: { avg: 1 } }, 
			{ type: "block", code: "metal-parts", quantity: { avg: 0.2 } } 
		],
		"*-large": [ 
			{ type: "block", code: "metal-scraps", quantity: { avg: 1.5 } }, 
			{ type: "block", code: "metal-parts", quantity: { avg: 0.5 } } 
		]
	}
}