{
	code: "chute",
	class: "BlockChute",
	entityclass: "ItemFlow",
	behaviors: [
		{ name: "Lockable" },
		{ name: "WrenchOrientable", properties: { baseCode: "chute-{type}"  } }
	],
	attributes: {
		"pullFacesByType": {
			"chute-elbow-down-*": ["up"],
			"chute-elbow-up-west": ["west"],
			"chute-elbow-up-east": ["east"],
			"chute-elbow-up-north": ["south"],
			"chute-elbow-up-south": ["north"],
			
			"chute-3way-down-*": ["up"],
			
			"chute-3way-up-west": ["north", "west"],
			"chute-3way-up-south": ["north", "east"],
			"chute-3way-up-east": ["south", "east"],
			"chute-3way-up-north": ["south", "west"],
		},
		"pushFacesByType": {
			"chute-elbow-down-*": ["{side}"],
			"chute-elbow-up-*": ["down"],
			"chute-3way-down-west": ["west", "south"],
			"chute-3way-down-south": ["south", "east"],
			"chute-3way-down-east": ["east", "north"],
			"chute-3way-down-north": ["north", "west"],
			"chute-3way-up-*": ["down"],
		},
		"acceptFromFacesByType": {
			"chute-3way-down-west": ["west", "south"],
			"chute-3way-down-south": ["south", "east"],
			"chute-3way-down-east": ["east", "north"],
			"chute-3way-down-north": ["north", "west"],
		},
		"item-flowrate": 1,
		"inventoryClassName": "chute",
		"quantitySlots": 1,
		openSound: { path: "block/hopperopen", pitch: { avg: 1.0, var: 0.25 } },
		tumbleSound: { path: "block/hoppertumble", pitch: { avg: 1.0, var: 0.25 }, range: 8, volume: { avg: 0.5, var: 0.0 } },
	},
	variantgroups: [
		{ code: "type", states: ["elbow", "3way"] },
		{ code: "vertical", states: ["up", "down" ] },
		{ code: "side", states: ["north", "east", "south", "west"] }
	],
	creativeinventory: { "general": ["*-down-east"], "mechanics": ["*-down-east"] },
	shapeinventory: { base: "block/metal/chute/{type}", rotateY: 90  },
	shapebytype: {
		"*-up-north": { base: "block/metal/chute/{type}" , rotateY: 270, rotateZ: 180 },
		"*-up-east": { base: "block/metal/chute/{type}" , rotateY: 0, rotateZ: 180 },
		"*-up-south": { base: "block/metal/chute/{type}" , rotateY: 90, rotateZ: 180 },
		"*-up-west": { base: "block/metal/chute/{type}" , rotateY: 180, rotateZ: 180 },
		
		"*-down-north": { base: "block/metal/chute/{type}" , rotateY: 270 },
		"*-down-east": { base: "block/metal/chute/{type}" , rotateY: 180 },
		"*-down-south": { base: "block/metal/chute/{type}" , rotateY: 90 },
		"*-down-west": { base: "block/metal/chute/{type}" , rotateY: 0 }
	},
	textures: {
		all: { base: "block/metal/sheet/copper1" },
	},
	blockmaterial: "Metal",
	lightAbsorption: 0,
	drawtype: "json",
	replaceable: 160,
	resistance: 1.75,
	sidesolid: {
		all: false
	},
	sideopaque: {
		all: false
	},
	sounds: {
		"place": "block/chute",
		"break": "block/chute",
		"hit": "block/chute",
		"walk": "game:walk/stone"
	},
	collisionselectionboxByType: {
		"chute-elbow-up-north": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 0.75, rotateY: 270 },
		"chute-elbow-up-east": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 0.75, rotateY: 0 },
		"chute-elbow-up-south": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 0.75, rotateY: 90 },
		"chute-elbow-up-west": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 0.75, rotateY: 180 },
		
		"chute-elbow-down-north": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 0.75, rotateY: 270 },
		"chute-elbow-down-east": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 0.75, rotateY: 180 },
		"chute-elbow-down-south": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 0.75, rotateY: 90 },
		"chute-elbow-down-west": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 0.75, rotateY: 0 },

		"chute-3way-up-north": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 1, rotateY: 270 },
		"chute-3way-up-east": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 1, rotateY: 0 },
		"chute-3way-up-south": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 1, rotateY: 90 },
		"chute-3way-up-west": { x1: 0.25, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 1, rotateY: 180 },
			
		"chute-3way-down-north": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 1, rotateY: 270 },
		"chute-3way-down-east": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 1, rotateY: 180 },
		"chute-3way-down-south": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 1, rotateY: 90 },
		"chute-3way-down-west": { x1: 0, y1: 0.25, z1: 0.25, x2: 0.75, y2: 1, z2: 1, rotateY: 0 }
	},
	guiTransform: {
		scale: 1.22
	}
}
