{
	code: "reefledge",
	class: "BlockCoral",
	behaviors: [{name: "HorizontalOrientable"}],
	variantgroups: [
		{ code: "type", states: ["blue", "red", "tan"] },
		{ code: "side", loadFromProperties: "abstract/horizontalorientation" }
	],
	creativeinventory: { "general": ["*-north"], "aquatic": ["*-north"] },
	renderpass: "OpaqueNoCull",
	shapebytype: {
		"*-north": { base: "block/aquatic/coral/ledge*", rotateY: 0 },
		"*-east": { base: "block/aquatic/coral/ledge*", rotateY: 270 },
		"*-south": { base: "block/aquatic/coral/ledge*", rotateY: 180 },
		"*-west": { base: "block/aquatic/coral/ledge*", rotateY: 90 }
	},
	doNotRenderAtLod2: false,
	texturesByType: {
		"reefledge-red-*": {
			block1: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/red1" ] },
			block2: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/tan1" ] },
			block3: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/red1" ]},
			block4: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/blue1" ] },
			sponge1: { base: "block/creature/aquatic/coral/sponge/red*" },
			sponge2: { base: "block/creature/aquatic/coral/sponge/blue*" },
			sponge3: { base: "block/creature/aquatic/coral/sponge/*" }
		},
		"reefledge-blue-*": {
			block1: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/tan1" ] },
			block2: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/blue1" ] },
			block3: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/red1" ] },
			block4:{
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/blue1" ] },
			sponge1: { base: "block/creature/aquatic/coral/sponge/*" },
			sponge2: { base: "block/creature/aquatic/coral/sponge/blue*" },
			sponge3: { base: "block/creature/aquatic/coral/sponge/yellow*" }
		},
		"reefledge-tan-*": {
			block1: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/tan1" ] },
			block2: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/brown1" ] },
			block3: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/yellow1" ] },
			block4: {
				base: "block/creature/aquatic/coral/block/base*",
				overlays: [ "block/creature/aquatic/coral/overlay/tan1" ] },
			sponge1: { base: "block/creature/aquatic/coral/sponge/brown*" },
			sponge2: { base: "block/creature/aquatic/coral/sponge/*" },
			sponge3: { base: "block/creature/aquatic/coral/sponge/yellow*" }
		}
	},
	sideopaque:{ all: false },
	sidesolid: { all: false },
	replaceable: 3000,
	lightAbsorption: 0,
	resistance: 4,
    requiredMiningTier: 2,
	sounds: {
		walk: "walk/stone",
		byTool: {
			"Pickaxe": { hit: "block/rock-hit-pickaxe", break: "block/rock-break-pickaxe" }
		}
	},
	blockmaterial: "Stone",
	materialDensity: 1100,
	drops: [
		{
			type: "item", 
			code: "coralchunk-{type}", 
			quantity: { avg: 1, var: 0 } 
		}
	],
	collisionboxbytype: {
		"*-north": { x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.5 },
		"*-east": { x1: 0.5, y1: 0, z1: 0, x2: 1, y2: 1, z2: 1 },
		"*-south": { x1: 0, y1: 0, z1: 0.5, x2: 1, y2: 1, z2: 1 },
		"*-west": { x1: 0, y1: 0, z1: 0, x2: 0.5, y2: 1, z2: 1 }
	},
	selectionboxbytype: {
		"*-north": { x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.5 },
		"*-east": { x1: 0.5, y1: 0, z1: 0, x2: 1, y2: 1, z2: 1 },
		"*-south": { x1: 0, y1: 0, z1: 0.5, x2: 1, y2: 1, z2: 1 },
		"*-west": { x1: 0, y1: 0, z1: 0, x2: 0.5, y2: 1, z2: 1 }
	},
	guiTransform: {
		rotate: false,
		rotation: { x: -21, y: 30, z: 0 },
		origin: { x: 0.4, y: 0.4, z: 0.5 },
		scale: 1.5
	},
	tpHandTransformByType: {
		"*": {
			translation: { x: -1, y: -0.1, z: -1 },
			rotation: { x: 71, y: 0, z: -84 },
			origin: { x: 0.5, y: 0.1, z: 0.5 },
			scale: 0.48
		}
	},
	groundTransformByType: {
		"*": {
			scale: 2.64
		}
	},
}
