{
	code: "log",
	// BlockLog contains only contains code for OnPickBlock
	entityClassByType: {
		"log-resinharvested-*": "Transient"
	},
	behaviorsByType: {
		"log-resinharvested-*": [ { name: "PushEventOnBlockBroken", properties: {eventName: "testForDecay"} } ],
		"*": [
			{ name: "PushEventOnBlockBroken", properties: {eventName: "testForDecay"} },
			{ name: "Harvestable", properties: {
				harvestTime: 1,
				harvestedStack: { type: "item", code: "resin", quantity: { avg: 1 }  },
				harvestedBlockCode: "log-resinharvested-{wood}-ud"
			} }
		],
	},
	attributesByType: {
		"log-resinharvested-*": {
			transientProps: {
				convertFrom: "log-resinharvested-{wood}-ud",
				convertTo: "log-resin-{wood}-ud",
				inGameHours: "168",
			},
			preventsDecay: true,
			treeFellingGroupCode: "{wood}",
			treeFellingGroupSpreadIndex: 3
		},
		"*": {
			preventsDecay: true,
			forageStatAffected: true,
			treeFellingGroupCode: "{wood}",
			treeFellingGroupSpreadIndex: 3
		}
	},
	variantgroups: [
		{ code: "type", states: ["resin", "resinharvested"] },
		{ code: "wood", states: ["pine", "acacia"] },
		{ code: "rotation", states: ["ud"] },
	],
	creativeinventory: { "general": ["*"], "flora": ["*"], "construction": ["*"] },
	drawtype: "json",
	blockmaterial: "Wood",
	requiredMiningTier: 1,
	shapeByType: {
		"log-resinharvested-*": {
			base: "block/wood/log/noresin1",
			alternates: [
				{ base: "block/wood/log/noresin1", rotateY: 90 },
				{ base: "block/wood/log/noresin1", rotateY: 180 },
				{ base: "block/wood/log/noresin1", rotateY: 270 },
				{ base: "block/wood/log/noresin2", rotateY: 0 },
				{ base: "block/wood/log/noresin2", rotateY: 90 },
				{ base: "block/wood/log/noresin2", rotateY: 180 },
				{ base: "block/wood/log/noresin2", rotateY: 270 }
			]
		},
		"*": {
			base: "block/wood/log/withresin1",
			alternates: [
				{ base: "block/wood/log/withresin1", rotateY: 90 },
				{ base: "block/wood/log/withresin1", rotateY: 180 },
				{ base: "block/wood/log/withresin1", rotateY: 270 },
				{ base: "block/wood/log/withresin2", rotateY: 0 },
				{ base: "block/wood/log/withresin2", rotateY: 90 },
				{ base: "block/wood/log/withresin2", rotateY: 180 },
				{ base: "block/wood/log/withresin2", rotateY: 270 }
			]
		},
	},
	textures: {
		"bark": { base: "block/wood/bark/{wood}" },
		"trunk": { base: "block/wood/treetrunk/{wood}" },
		"resinbark1": { base: "block/wood/bark/{wood}", overlays: ["block/wood/bark/resin1"] },
		"resinbark2": { base: "block/wood/bark/{wood}", overlays: ["block/wood/bark/resin2"] }
	},
	replaceable: 500,
	resistance: 4.5,
	sounds: {
		"place": "block/planks",
		"walk": "walk/wood",
		"hit": "block/planks",
		"break": "block/planks",
		byTool: {
			"Axe": { hit: "block/chop", break: "block/planks" }
		}
	},
	drops: [
		{ type: "block", code: "log-placed-{wood}-ud", quantity: { avg: 1 }  }
	],
	combustibleProps: {
		burnTemperature: 800,
		burnDuration: 60,
	},
	maxStackSize: 16,
	materialDensity: 700,
	heldTpIdleAnimation: "holdbothhandslarge", heldRightReadyAnimation: "heldblockready", heldTpUseAnimation: "twohandplaceblock",
	guiTransform: {
		rotation: { x: -22.6, y: 135, z: 0 }
	},
	tpHandTransform: {
		translation: { x: -1.23, y: -0.91, z: -0.8 },
		rotation: { x: -2, y: 25, z: -78 },
		scale: 0.4
	}
}
