{
	code: "slantedroofing",
	behaviors: [{name: "HorizontalOrientable", properties: {  dropBlockFace: "east", drop: { type: "block", code: "slantedroofing-{material}-east-free" }  }}],
	variantgroups: [
		{ code: "material", states: ["copper", "slate", "thatch", "agedthatch", "blackclay", "brownclay", "creamclay", "fireclay", "grayclay", "orangeclay", "redclay", "tanclay", 
									"bamboo", "sod", "acacia", "aged", "baldcypress", "birch", "ebony", "kapok", "larch", "maple", "oak", "pine", "purpleheart", "redwood", "walnut"] },
		{ loadFromProperties: "abstract/horizontalorientation" },
		{ code: "cover", states: ["free", "snow"] }
	],
	attributes: {
		humanoidTraversalCost: 100,
		mapColorCode: "settlement",
	},
	shapeByType: { 
		"@.*-(agedthatch|thatch)-north-.*": { base: "block/roofing/main/{material}-{cover}", rotateY: 90 },
		"@.*-(agedthatch|thatch)-west-.*": { base: "block/roofing/main/{material}-{cover}", rotateY: 180 },
		"@.*-(agedthatch|thatch)-south-.*": { base: "block/roofing/main/{material}-{cover}", rotateY: 270 },
		"@.*-(agedthatch|thatch)-east-.*": { base: "block/roofing/main/{material}-{cover}", rotateY: 0 },
		
		"@.*-(black|brown|cream|fire|gray|orange|red|tan)clay-north-.*": { base: "block/roofing/main/shingles-clay-{cover}", rotateY: 90 },
		"@.*-(black|brown|cream|fire|gray|orange|red|tan)clay-west-.*": { base: "block/roofing/main/shingles-clay-{cover}", rotateY: 180 },
		"@.*-(black|brown|cream|fire|gray|orange|red|tan)clay-south-.*": { base: "block/roofing/main/shingles-clay-{cover}", rotateY: 270 },
		"@.*-(black|brown|cream|fire|gray|orange|red|tan)clay-east-.*": { base: "block/roofing/main/shingles-clay-{cover}", rotateY: 0 },
		
		"*-bamboo-north-*": { base: "block/roofing/main/bamboo-{cover}", rotateY: 90 },
		"*-bamboo-west-*": { base: "block/roofing/main/bamboo-{cover}", rotateY: 180 },
		"*-bamboo-south-*": { base: "block/roofing/main/bamboo-{cover}", rotateY: 270 },
		"*-bamboo-east-*": { base: "block/roofing/main/bamboo-{cover}", rotateY: 0 },
		
		"*-sod-north-*": { base: "block/roofing/main/sod-{cover}", rotateY: 90 },
		"*-sod-west-*": { base: "block/roofing/main/sod-{cover}", rotateY: 180 },
		"*-sod-south-*": { base: "block/roofing/main/sod-{cover}", rotateY: 270 },
		"*-sod-east-*": { base: "block/roofing/main/sod-{cover}", rotateY: 0 },
		
		"@.*-(slate|copper)-north-.*": { base: "block/roofing/main/shingles-slate-copper-{cover}", rotateY: 90 },
		"@.*-(slate|copper)-west-.*": { base: "block/roofing/main/shingles-slate-copper-{cover}", rotateY: 180 },
		"@.*-(slate|copper)-south-.*": { base: "block/roofing/main/shingles-slate-copper-{cover}", rotateY: 270 },
		"@.*-(slate|copper)-east-.*": { base: "block/roofing/main/shingles-slate-copper-{cover}", rotateY: 0 },

		"*-north-*": { base: "block/roofing/main/wood-{cover}", rotateY: 90 },
		"*-west-*": { base: "block/roofing/main/wood-{cover}", rotateY: 180 },
		"*-south-*": { base: "block/roofing/main/wood-{cover}", rotateY: 270 },
		"*-east-*": { base: "block/roofing/main/wood-{cover}", rotateY: 0 },
	},
	texturesByType: {
		"*-copper-*": {
			"material": { base: "block/metal/shingles/copper*" }
		},
		"*-slate-*": {
			"material": { base: "block/stone/shingles/slate*" }
		},
		"*-blackclay-*": {
			"material": { base: "block/clay/shingles/black" }
		},
		"*-brownclay-*": {
			"material": { base: "block/clay/shingles/brown" }
		},
		"*-creamclay-*": {
			"material": { base: "block/clay/shingles/cream" }
		},
		"*-fireclay-*": {
			"material": { base: "block/clay/shingles/fire" }
		},
		"*-grayclay-*": {
			"material": { base: "block/clay/shingles/gray" }
		},
		"*-orangeclay-*": {
			"material": { base: "block/clay/shingles/orange" }
		},
		"*-redclay-*": {
			"material": { base: "block/clay/shingles/red" }
		},
		"*-tanclay-*": {
			"material": { base: "block/clay/shingles/tan" }
		},
		"*-thatch-*": {
			"normal-top": { base: "block/hay/normal-top" },
			"normal-side": { base: "block/hay/normal-side" },
			"straw1": { base: "block/plant/grassroofing/straw1" }
		},
		"*-agedthatch-*": {
			"normal-top": { base: "block/plant/grassroofing/thatch/bamboo-top" },
			"normal-side": { base: "block/plant/grassroofing/thatch/aged1" },
			"straw1": { base: "block/plant/grassroofing/thatch/agedstraw" }
		},
		"*-bamboo-*": {
			"bamboo-side": { base: "block/wood/planks/bamboo-side" },
			"bamboo-top": { base: "block/wood/planks/bamboo-top" },
			"bamboosmooth": { base: "block/wood/planks/bamboosmooth" }
		},
		"@.*-(aged|veryaged)-.*": {
			"acacia1": { base: "block/wood/planks/aged/{material}1" },
			"acacia-top": { base: "block/wood/shingles/{material}-top" },
			"acacia-side": { base: "block/wood/shingles/{material}-side" },
		},
		"@.*-(acacia|baldcypress|birch|ebony|kapok|larch|maple|oak|pine|purpleheart|redwood|walnut)-.*": {
			"acacia1": { base: "block/wood/planks/{material}1" },
			"acacia-top": { base: "block/wood/shingles/{material}-top" },
			"acacia-side": { base: "block/wood/shingles/{material}-side" },
		},
	},
	drawtype: "json",
	faceCullMode: "NeverCull",
	renderpass: "OpaqueNoCull",
	sidesolidByType: {
		"*-north-*": {"north": true, "south": false, "east": false, "west": false, "up": false, "down": true },
		"*-south-*": {"north": false, "south": true, "east": false, "west": false, "up": false, "down": true },
		"*-east-*": {"north": false, "south": false, "east": true, "west": false, "up": false, "down": true },
		"*-west-*": {"north": false, "south": false, "east": false, "west": true, "up": false, "down": true }
	},
	sideopaque: { all: false },
	blockmaterialByType: {
		"*-agedthatch-*": "Plant",
		"*-thatch-*": "Plant",
		"*-sod-*": "Plant",
		"*-bamboo-*": "Wood",
		"*-copper-*": "Metal",
		"*clay-*": "Ceramic",
		"*-slate-*": "Stone",
		"*": "Wood",
	},
	creativeinventory: { "general": ["*-east-free"], "decorative": ["*-east-free"] },
	replaceable: 300,
	resistance: 2,
	lightAbsorption: 99,
	emitSideAo: {
		all: true
	},
	sideAoByType: { "*-sod-*": { all: false } },
	collisionSelectionBoxesByType: {
		"*-north-*": [ { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.5625, z2: 1, rotateY: 90 }, { x1: 0.625, y1: 0.5625, z1: 0, x2: 1, y2: 1, z2: 1, rotateY: 90 } ],
		"*-west-*": [ { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.5625, z2: 1, rotateY: 180 }, { x1: 0.625, y1: 0.5625, z1: 0, x2: 1, y2: 1, z2: 1, rotateY: 180 } ],
		"*-south-*": [ { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.5625, z2: 1, rotateY: 270 }, { x1: 0.625, y1: 0.5625, z1: 0, x2: 1, y2: 1, z2: 1, rotateY: 270 } ],
		"*-east-*": [ { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.5625, z2: 1 }, { x1: 0.625, y1: 0.5625, z1: 0, x2: 1, y2: 1, z2: 1 } ]
	},
	soundsByType: {
		"*-agedthatch-*": {
			place: "block/plant",
			break: "block/plant",
			hit: "block/plant",
		},
		"*-thatch-*": {
			place: "block/plant",
			break: "block/plant",
			hit: "block/plant",
		},
		"*-bamboo-*": {
			place: "block/planks",
			break: "block/planks",
			hit: "block/planks",
		},
		"*-copper-*": {
			"place": "block/chute",
			"break": "block/chute",
			"hit": "block/chute",
			"walk": "walk/stone"
		},
		"*-slate-*": {
			walk: "walk/stone",
			place: "block/ceramicplace"
		},
		"*clay-*": {
			walk: "walk/stone",
			place: "block/ceramicplace"
		},
		"*-sod-*": {
			"hit": "block/planks",
			"break": "block/planks",
			"place": "block/planks",
			"walk": "walk/grass*"
		},
		"*": {
			place: "block/planks",
			break: "block/planks",
			hit: "block/planks",
		},
	},
	guiTransformByType: {
		"*-thatch-*": {
			rotation: { x: -22.6, y: -40, z: 0 },
			origin: { x: 0.29, y: 0.54, z: 0.44 },
			scale: 0.85
		},
		"*-agedthatch-*": {
			rotation: { x: -22.6, y: -40, z: 0 },
			origin: { x: 0.29, y: 0.54, z: 0.44 },
			scale: 0.85
		},
		"*": {
			rotation: { x: -22.6, y: -40, z: 0 },
			origin: { x: 0.53, y: 0.55, z: 0.46 },
			scale: 0.85
		}
	}
}