{
	code: "woodenfencegate",
	class: "BlockFenceGate",
	behaviors: [ {name: "Lockable" } ],
	attributes: {
		canStep: false,
		reinforcable: true,
		isFence: true,
		handbook: {
			groupBy: ["woodenfencegate-*"]
		}
	},
	variantgroups: [
		{ code: "wood", states: ["aged", "veryaged"], loadFromProperties: "block/wood" },
		{ code: "type", states: ["n", "w"] },
		{ code: "state", states: ["opened", "closed"] },
		{ code: "knobOrientation", states: ["left", "right"] },
		{ code: "cover", states: ["free", "snow"] }
	],
	creativeinventory: { "general": ["*-n-closed-left-free"], "decorative": ["*-n-closed-left-free"] },
	shapebytype: {
		"*-n-opened-left-free": { base: "block/wood/fencegate/opened_left" },
		"*-w-opened-left-free": { base: "block/wood/fencegate/opened_left", rotateY: 90},
		"*-n-closed-left-free": { base: "block/wood/fencegate/closed_left"},
		"*-w-closed-left-free": { base: "block/wood/fencegate/closed_left" , rotateY: 90 },
		"*-n-opened-right-free": { base: "block/wood/fencegate/opened_right" },
		"*-w-opened-right-free": { base: "block/wood/fencegate/opened_right", rotateY: 90},
		"*-n-closed-right-free": { base: "block/wood/fencegate/closed_right"},
		"*-w-closed-right-free": { base: "block/wood/fencegate/closed_right" , rotateY: 90 },
		
		"*-n-opened-left-snow": { base: "block/wood/fencegate/snow-opened_left" },
		"*-w-opened-left-snow": { base: "block/wood/fencegate/snow-opened_left", rotateY: 90},
		"*-n-closed-left-snow": { base: "block/wood/fencegate/snow-closed_left"},
		"*-w-closed-left-snow": { base: "block/wood/fencegate/snow-closed_left" , rotateY: 90 },
		"*-n-opened-right-snow": { base: "block/wood/fencegate/snow-opened_right" },
		"*-w-opened-right-snow": { base: "block/wood/fencegate/snow-opened_right", rotateY: 90},
		"*-n-closed-right-snow": { base: "block/wood/fencegate/snow-closed_right"},
		"*-w-closed-right-snow": { base: "block/wood/fencegate/snow-closed_right" , rotateY: 90 }
	},
	drawtypeByType: {
		"*-free": "JSON",
		"*-snow": "JSONAndSnowLayer",
	},
	textures: {
		"horizontal": {	base: "block/wood/debarked/{wood}",	overlays: ["block/slightlydarker"]},
		"vertical": { base: "block/wood/debarked/{wood}", rotation: 90 }
	},
	faceCullMode: "NeverCull",
	blockmaterial: "Wood",
	replaceable: 900,
	resistance: 1.5,
	lightAbsorption: 1,
	sidesolid: {
		all: false
	},
	sideopaque: { all: false },
	emitsideao: {
		all: false
	},
	collisionboxbytype: {
		"*-n-opened-left-*": null,
		"*-w-opened-left-*": null,
		"*-n-closed-left-*": { x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 1.3125, z2: 0.6 },
		"*-w-closed-left-*": { x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 1.3125, z2: 1 },
		"*-n-opened-right-*": null,
		"*-w-opened-right-*": null,
		"*-n-closed-right-*": { x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 1.3125, z2: 0.6 },
		"*-w-closed-right-*": { x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 1.3125, z2: 1 }
	},
	particlecollisionboxbytype: {
		"*-n-opened-left-*": null,
		"*-w-opened-left-*": null,
		"*-n-closed-left-*": { x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 1, z2: 0.6 },
		"*-w-closed-left-*": { x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 1, z2: 1 },
		"*-n-opened-right-*": null,
		"*-w-opened-right-*": null,
		"*-n-closed-right-*": { x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 1, z2: 0.6 },
		"*-w-closed-right-*": { x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 1, z2: 1 }
	},
	selectionboxesbytype: {
		"*-n-opened-left-*": [{ x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 0.88, z2: 0.6 }, { x1: 0, y1: 0, z1: -0.03, x2: 0.2, y2: 0.88, z2: 0.6 }],
		"*-w-opened-left-*": [{ x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 0.88, z2: 1 }, { x1: -0.03, y1: 0, z1: 0.8, x2: 0.625, y2: 0.88, z2: 1 }],
		"*-n-closed-left-*": [{ x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 0.88, z2: 0.6 }],
		"*-w-closed-left-*": [{ x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 0.88, z2: 1 }],
		"*-n-opened-right-*": [{ x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 0.88, z2: 0.6 }, { x1: 0.8, y1: 0, z1: -0.03, x2: 1, y2: 0.88, z2: 0.6 }],
		"*-w-opened-right-*": [{ x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 0.88, z2: 1 }, { x1: -0.03, y1: 0, z1: 0, x2: 0.625, y2: 0.88, z2: 0.2 }],
		"*-n-closed-right-*": [{ x1: 0, y1: 0, z1: 0.375, x2: 1, y2: 0.88, z2: 0.6 }],
		"*-w-closed-right-*": [{ x1: 0.375, y1: 0, z1: 0, x2: 0.625, y2: 0.88, z2: 1 }]
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 10,
	},
	sounds: {
		"place": "block/planks",
		"hit": "block/planks",
		"break": "block/planks",
		"walk": "walk/wood"
	},
	materialDensity: 600,
	tpHandTransform: {
		translation: { x: -1.5, y: -1, z: -1.2 },
		rotation: { x: 5, y: -3, z: -96 },
		scale: 0.37
	},
	groundTransform: {
		translation: { x: 0, y: 0.05, z: 0 },
		rotation: { x: 90, y: -45, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 2.07
	}
}
