{
	code: "bow",
	tags: ["weapon", "weapon-ranged", "weapon-bow"],
	variantgroups: [
		{ code: "type", states: ["simple", "crude", "long", "recurve" ] },
	],
	class: "ItemBow",
	maxstacksize: 1,
	durabilityByType: {
		"bow-crude": 180,
		"bow-simple": 240,
		"bow-long": 750,
		"bow-recurve": 600
	},
	shape: {
		base: "item/tool/bow/{type}",
		alternates: [
			{ base: "item/tool/bow/{type}-charge1" },
			{ base: "item/tool/bow/{type}-charge2" },
			{ base: "item/tool/bow/{type}-charge3" }
		]
	},
	tool: "bow",
	creativeinventory: { "general": ["*"], "items": ["*"], "tools": ["*"] },
	attributes: {
		heldItemPitchFollow: 1,
		aimAnimationByType: {
			"bow-crude": "bowaimcrude",
			"bow-long": "bowaimlong",
			"bow-recurve": "bowaimrecurve",
			"*": "bowaim",
		},
		damageByType: {
			"bow-crude": 3,
			"bow-simple": 3.25,
			"bow-long": 3.75,
			"bow-recurve": 4
		},
		damageTierByType: {
			"bow-crude": 0,
			"bow-simple": 0,
			"bow-long": 0,
			"bow-recurve": 0
		},
		statModifierByType: {
			"bow-crude": { "rangedWeaponsAcc": -0.05 },
			"bow-simple": { "rangedWeaponsAcc": 0 },
			"bow-long": { "rangedWeaponsAcc": 0.2 },
			"bow-recurve": { "rangedWeaponsAcc": 0.3 }
		},
		toolrackTransformByType: {
			"bow-long": {
				translation: { x: 0.2, y: 0.95 },
				rotation: { x: 2, y: 5, z: 0 },
				scale: 1.76
			},
			"*": {
				translation: { x: 0.14, y: 0.93 },
				rotation: { x: 2, y: 5, z: 0 },
				scale: 1.76
			}
		},
			groundStorageTransformByType: {
			"bow-simple":{
				translation: { x: -0.4, y: -0.03, z: 0.315 },
				rotation: { x: 26, y: -180, z: -90 },
				scale: 0.88
			},
			"bow-crude":{
				translation: { x: -0.4, y: -0.11, z: 0.345 },
				rotation: { x: 26, y: -180, z: -90 }
			},
			"bow-long":{
				translation: { x: -0.45, y: 0.1, z: 0.29 },
				rotation: { x: 26, y: -180, z: -90 },
				scale: 0.88
			},
			"*":{
				translation: { x: -0.4, y: 0.1, z: 0.28 },
				rotation: { x: 20, y: -180, z: -90 },
				scale: 0.83
			},
		},
		antlerMountable: true,
		onAntlerMountTransformByType: {
			"*": {
				translation: { x: -0.38, y: 0.533, z: 0.02 },
				rotation: { x: -90, y: -180, z: -90 },
				origin: { x: 0.5, y: -0, z: 0.5 }
			}			
		}
	},
	attributesByType: {
		"*-crude": {
			attachableToEntity: {
				categoryCode: "bowshort",
				attachedShapeBySlotCode: {
					"frontrightside": { base: "item/wearable/hooved/elk/weaponr-bow-crude" },
					"frontleftside": { base: "item/wearable/hooved/elk/weaponl-bow-crude" }
				}
			}				
		},
		"*-long": {
			attachableToEntity: {
				categoryCode: "bowlong",
				attachedShapeBySlotCode: {
					"frontrightside": { base: "item/wearable/hooved/elk/weaponr-bow-long" },
					"frontleftside": { base: "item/wearable/hooved/elk/weaponl-bow-long" }
				}
			}				
		},
		"*-recurve": {
			attachableToEntity: {
				categoryCode: "bowlong",
				attachedShapeBySlotCode: {
					"frontrightside": { base: "item/wearable/hooved/elk/weaponr-bow-recurve" },
					"frontleftside": { base: "item/wearable/hooved/elk/weaponl-bow-recurve" }
				}
			}				
		},
		"*-simple": {
			attachableToEntity: {
				categoryCode: "bowshort",
				attachedShapeBySlotCode: {
					"frontrightside": { base: "item/wearable/hooved/elk/weaponr-bow-simple" },
					"frontleftside": { base: "item/wearable/hooved/elk/weaponl-bow-simple" }
				}
			}				
		}
	},
	behaviors: [{ 
		name: "GroundStorable",
		properties: {
			layout: 'WallHalves',
			wallOffYByType: {
				"bow-crude": 1,
				"bow-simple": 1,
				"*": 2,
			},
			ctrlKey: true,
			selectionBox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.1, z2: 1 },
			collisionBox: { x1: 0, y1: 0, z1: 0, x2: 0, y2: 0, z2: 0 },
		}
	}],
	guiTransformByType: {
		"bow-crude": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -95, y: 45, z: 37 },
			origin: { x: 0.47, y: 0, z: 0.55 },
			scale: 2.35
		},
		"bow-long": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -135, y: 25, z: 41 },
			origin: { x: 0.47, y: 0, z: 0.59 },
			scale: 1.35
		},
		"bow-recurve": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -129, y: 25, z: 41 },
			origin: { x: 0.47, y: 0, z: 0.55 },
			scale: 1.36
		},
		"*": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -129, y: 25, z: 41 },
			origin: { x: 0.47, y: 0, z: 0.55 },
			scale: 1.64
		}
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: 0, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 4.8
	},
	tpHandTransformByType: {
		"bow-recurve": {
			translation: { x: -0.56, y: 0.01, z: -0.54 },
			rotation: { x: 107, y: 11, z: 10 },
			origin: { x: 0.5, y: 0, z: 0.5 },
			scale: 0.93
		},
		"bow-long": {
			translation: { x: -0.4199, y: -0, z: -0.39 },
			rotation: { x: 107, y: 11, z: 10 },
			origin: { x: 0.5, y: 0, z: 0.5 },
			scale: 1.29
		},
		"bow-simple": {
			translation: { x: -0.48, y: 0.03, z: -0.44 },
			rotation: { x: 105, y: 9, z: 4 },
			origin: { x: 0.5, y: 0, z: 0.5 },
			scale: 1.15
		},
		"*": {
			translation: { x: -0.48, y: 0, z: -0.44 },
			rotation: { x: 107, y: 11, z: 10 },
			origin: { x: 0.5, y: 0, z: 0.5 },
			scale: 1.15
		}
	}
}
