{
	code: "leavesbranchy",
	// BlockLeaves contains some code for map color tinting, stuff for wind affectedness and random testForDecay server block ticks
	class: "BlockLeaves",
	behaviorsByType: {
		"*-grown*-*": [{name: "PushEventOnBlockBroken",	properties: {eventName: "testForDecay"}}, { name: "RainDrip" }],
		"*": [{ name: "RainDrip" }]
	},
	attributes: {
		fenceConnect: { north: false, east: false, west: false, south: false },
		asphyxiating: false,
		handbook: {
			groupBy: ["leavesbranchy-*"]
		},
		treeFellingGroupCodeByType: {
			"*-grown-crimsonkingmaple": "0maple",
			"*-grown1-crimsonkingmaple": "1maple",
			"*-grown2-crimsonkingmaple": "2maple",
			"*-grown3-crimsonkingmaple": "3maple",
			"*-grown4-crimsonkingmaple": "4maple",
			"*-grown5-crimsonkingmaple": "5maple",
			"*-grown6-crimsonkingmaple": "6maple",
			"*-grown7-crimsonkingmaple": "7maple",
			"*-grown-*": "0{wood}",
			"*-grown1-*": "1{wood}",
			"*-grown2-*": "2{wood}",
			"*-grown3-*": "3{wood}",
			"*-grown4-*": "4{wood}",
			"*-grown5-*": "5{wood}",
			"*-grown6-*": "6{wood}",
			"*-grown7-*": "7{wood}"
		},
		treeFellingGroupSpreadIndex: 1,
		canDecayByType: {
			"*-grown*-*": true
		},
		liquidBarrierOnSides: [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ],
		allowOverlays: false
	},
	variantgroups: [
		{ code: "type", states: ["grown", "grown1", "grown2", "grown3", "grown4", "grown5", "grown6", "grown7", "placed"] },
		{ code: "wood", states: ["crimsonkingmaple"], loadFromProperties: "block/wood" }
	],
	creativeinventory: { "general": ["leavesbranchy-placed-*"], "flora": ["leavesbranchy-placed-*"] },
	
	shape: {
		baseByType: {
			"*-pine": "block/plant/leaves/branchy-pine",
			"*-redwood": "block/plant/leaves/branchy-redwood",
			"*-birch": "block/plant/leaves/branchy-birch",
			"*-maple": "block/plant/leaves/branchy-maple",
			"*-oak": "block/plant/leaves/branchy-oak",
			"*-crimsonkingmaple": "block/plant/leaves/branchy-crimsonkingmaple",
			"*-larch": "block/plant/leaves/branchy-larch",
			"*-kapok": "block/plant/leaves/branchy-kapok",
			"*": "block/plant/leaves/branchy"
		},
		rotateY: 10,
		alternates: [
			{ rotateY: 61 },
			{ rotateY: 113 },
			{ rotateY: 164 },
			{ rotateY: 216 },
			{ rotateY: 267 },
			{ rotateY: 319 }
		]
	},
	lod0Shape: {
		baseByType: {
			"*-pine": "block/plant/leaves/branchy-pine-lod0",
			"*-redwood": "block/plant/leaves/branchy-redwood-lod0",
			"*-birch": "block/plant/leaves/branchy-birch-lod0",
			"*-maple": "block/plant/leaves/branchy-maple-lod0",
			"*-oak": "block/plant/leaves/branchy-oak-lod0",
			"*-kapok": "block/plant/leaves/branchy-kapok-lod0",
			"*-crimsonkingmaple": "block/plant/leaves/branchy-crimsonkingmaple-lod0",
			"*-larch": "block/plant/leaves/branchy-larch-lod0",
			"*": "block/plant/leaves/branchy-lod0"
		},
		rotateY: 10,
		alternates: [
			{ rotateY: 61 },
			{ rotateY: 113 },
			{ rotateY: 164 },
			{ rotateY: 216 },
			{ rotateY: 267 },
			{ rotateY: 319 }
		]
	},
	shapeInventory: {
		baseByType: {
			"*-redwood": "block/plant/leaves/branchy-redwood-lod0",
			"*-crimsonkingmaple": "block/plant/leaves/branchy-crimsonkingmaple-lod0",
			"*": "block/plant/leaves/branchy-lod0"
		}
	},
	renderpass: "OpaqueNoCull",
	faceCullMode: "CollapseMaterial",
	blockmaterial: "Leaves",
	vertexFlags: {
		zOffset: 4,
		windMode: "Leaves"
	},
	textures: {
		largeleavesByType: {
			"*-larch": { base: "block/plant/leaves/large/pine*" },
			"*-redwood": { base: "block/plant/leaves/large/pine*" },
			"*-crimsonkingmaple": { base: "block/plant/leaves/large/maple*" },
			"*": { base: "block/plant/leaves/large/{wood}*" },
		},
		smallleavesByType: {
			"*-larch": { base: "block/plant/leaves/small/pine*" },
			"*-redwood": { base: "block/plant/leaves/small/pine*" },
			"*-crimsonkingmaple": { base: "block/plant/leaves/small/maple*" },
			"*": { base: "block/plant/leaves/small/{wood}*" },
		},
		branch: { base: "block/plant/leaves/large/branch" }
	},
	sideopaque: {
		all: false
	},
	sideao: {
		all: true
	},
	emitSideAo: {
		all: false
	},
	replaceable: 3000,
	lightAbsorption: 1,
	resistance: 0.9,
	snowCoverage: true,
	drops: [
		{
			type: "item",
			code: "treeseed-{wood}",
			quantityByType: {
				"*-pine": { avg: 0.12, var: 0 },
				"*-acacia": { avg: 0.12, var: 0 },
				"*-larch": { avg: 0.025, var: 0 },
				"*-crimsonkingmaple": { avg: 0.0325, var: 0 },
				"*-redwood": { avg: 0.004, var: 0 },
				"*-ebony": { avg: 0.01, var: 0 },
				"*-purpleheart": { avg: 0.01, var: 0 },
				"*": { avg: 0.05, var: 0 }
			}
		},
		{
			type: "item",
			code: "stick",
			quantity: { avg: 1, var: 0 },
		}
	],
	sounds: {
		break: "block/plant",
		place: "block/plant",
		hit: "block/plant",
		walk: "walk/grass"
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 10,
	},
	materialDensity: 400,
	heldTpIdleAnimation: "holdbothhandslarge", heldRightReadyAnimation: "heldblockready", heldTpUseAnimation: "twohandplaceblock",
	tpHandTransform: {
		translation: { x: -1.23, y: -0.91, z: -0.8 },
		rotation: { x: -2, y: 25, z: -78 },
		scale: 0.4
	},
	guiTransform: {
		scale: 0.8
	},
	frostable: true,
}
