{
	code: "club",
	tags: ["weapon", "weapon-melee"],
	damagedby: ["blockbreaking", "attacking"],
	variantgroups: [
		{ code: "type", states: ["generic", "scrap", "scrapmace", "flanged", "morningstar", "spiked", "warhammer" ] },
		{ code: "material", states: ["wood", "scrap", "ruined" ] }
	],
	allowedVariants: [
		"club-generic-wood",
		"club-scrap-scrap",
		"club-scrapmace-scrap",
		"club-flanged-ruined",
		"club-morningstar-ruined",
		"club-spiked-ruined",
		"club-warhammer-ruined"
	],
	shapeByType: {
		"club-*-ruined": { base: "item/tool/club/ruined/{type}" },
		"*": { base: "item/tool/club/{type}" }
	},
	heldTpHitAnimation: "breaktool",
	textures: {
		"wood": { base: "block/wood/debarked/aged" }
	},
	attackRange: 2,
	attributes: {
        attachableToEntity: { categoryCode: "toolholding" },
		heldItemPitchFollow: 0.9,
		rackable: true,
		toolrackTransformByType: {
			"club-generic-wood": {
				scale: 1,
				translation: { x: -0.2, y: 0.1, z: 0 },
				rotation: { x: 0, y: 1, z: 0 }
			},
			"club-flanged-ruined": {
				translation: { x: -0.7, y: 0.64, z: 0 },
				rotation: { x: 180, y: 0, z: 0 },
				origin: { x: 0.5, y: 0, z: 0.5 },
				scale: 1.3
			},
			"club-morningstar-ruined": {
				translation: { x: -0.5, y: 0.6, z: 0 },
				origin: { x: 0.5, y: 0, z: 0.5 },
				scale: 1.3
			},
			"club-spiked-ruined": {
				translation: { x: -0.53, y: 0.55, z: 0 },
				origin: { x: 0.5, y: 0, z: 0.5 },
				scale: 1.3
			},
			"club-warhammer-ruined": {
				translation: { x: -0.9, y: 0.57, z: 0 },
				rotation: { x: 10, y: 0, z: 0 },
				origin: { x: 0.5, y: 0, z: 0.5 },
				scale: 1.3
			},
			"*": {
				translation: { x: -0.23, y: 0.5, z: 0 },
				rotation: { x: 0, y: 0, z: 0 },
				origin: { x: 0.5, y: 0, z: 0.5 },
				scale: 1.3
			}
		},
		groundStorageTransformByType: {
			"club-generic-wood": {
				translation: { x: 0, y: -0.135, z: 0.28 },
				rotation: { x: 26, y: 88, z: -87 },
				scale: 0.88
			},
			"club-scrap-scrap": {
				translation: { x: 0, y: 0.24, z: -0.125 },
				rotation: { x: 26, y: 88, z: -87 }
			},
			"club-morningstar-ruined": {
				translation: { x: 0, y: 0.35, z: -0.17 },
				rotation: { x: 26, y: 88, z: -87 },
				scale: 0.88
			},
			"club-spiked-ruined": {
				translation: { x: 0, y: 0.59, z: -0.125 },
				rotation: { x: 26, y: 88, z: -90 },
				scale: 0.88
			},
			"club-warhammer-ruined": {
				translation: { x: 0, y: 0.47, z: -0.125 },
				rotation: { x: 26, y: 82, z: -87 },
				scale: 0.88
			},
			"club-flanged-ruined": {
				translation: { x: 0, y: 0.4, z: -0.1 },
				rotation: { x: 26, y: 88, z: -87 },
				scale: 0.88
			},
			"*": {
				translation: { x: 0, y: 0.02, z: -0.005 },
				rotation: { x: 26, y: 88, z: -87 },
				scale: 0.88
			}
		},
		handbook: {
			groupBy: ["club-*-{material}"]
		},
		antlerMountable: true,
		onAntlerMountTransformByType: {
			"club-generic-wood": {
				translation: { x: -0.36, y: -0.067, z: 0.02 },
				rotation: { x: -90, y: -90, z: -90 },
				origin: { x: 0.5, y: 0.2, z: 0.5 }
			},
			"club-flanged-ruined": {
				translation: { x: -0.36, y: 0.45, z: -0.3 },
				rotation: { x: -86, y: -90, z: -90 },
				origin: { x: 0.5, y: 0.2, z: 0.5 }
			},
			"club-spiked-ruined": {
				translation: { x: -0.36, y: 0.45, z: -0.3 },
				rotation: { x: -90, y: -90, z: -90 },
				origin: { x: 0.5, y: 0.2, z: 0.5 }
			},
			"club-warhammer-ruined": {
				translation: { x: -0.36, y: 0.45, z: -0.2 },
				rotation: { x: -90, y: -26, z: -90 },
				origin: { x: 0.5, y: -0, z: 0.5 }
			},
			"*": {
				translation: { x: -0.36, y: 0.45, z: -0.1 },
				rotation: { x: -90, y: -90, z: -90 },
				origin: { x: 0.5, y: 0.2, z: 0.5 }
			}			
		}
	},
	behaviors: [{
		name: "GroundStorable",
		properties: {
			layout: 'WallHalves',
			wallOffYByType: {
				"club-spiked-ruined": 2,
				"club-warhammer-ruined": 2,
				"*": 1
			},
			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 },
		}
	}, { name: "AnimationAuthoritative" }],
	durabilitybytype: {
		"*-ruined": 15,
		"club-generic-wood": 150,
		"club-scrap-scrap": 125,
		"club-scrapmace-scrap": 200
	},
	attackpowerbytype: {
		"club-generic-wood": 1.5,
		"club-scrap-scrap": 2.5,
		"club-scrapmace-scrap": 2,
		"*-ruined": 4.5
	},
	creativeinventory: {
		"general": ["*"],
		"items": ["*"],
		"tools": ["*"],
		"clutterByType": { "*-ruined": ["*"] }
	},
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 10,
	},
	guiTransformByType: {
		"club-scrap-scrap":
			{
				rotate: false,
				translation: { x: 0, y: 0, z: 0 },
				rotation: { x: -71, y: -129, z: 164 },
				origin: { x: 0.4, y: 0.3, z: 0.49 },
				scale: 1.9
			},
		"club-scrapmace-scrap":
			{
				rotate: false,
				translation: { x: 0, y: 0, z: 0 },
				rotation: { x: -66, y: -125, z: 164 },
				origin: { x: 0.51, y: 0.1, z: 0.5 },
				scale: 2.35
			},
		"club-morningstar-ruined": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -66, y: -128, z: 164 },
			origin: { x: 1.15, y: -0.19, z: 0.7 },
			scale: 2.39
		},
		"*-ruined": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -66, y: -128, z: 164 },
			origin: { x: 1.16, y: 0.11, z: 0.46 },
			scale: 2.39
		},
		"*": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -66, y: -128, z: 164 },
			origin: { x: 0.55, y: 0.51, z: 0.57 },
			scale: 2.1
		}
	},
	groundTransformByType: {
		"club-scrap-scrap": {
				translation: { x: 0, y: 0.4, z: 0 },
				rotation: { x: 0, y: 0, z: 0 },
				origin: { x: 0.5, y: 0.45, z: 0.5 },
				scale: 3.6
			},
		"club-scrapmace-scrap": {
				translation: { x: 0, y: 0.4, z: 0 },
				rotation: { x: 0, y: 0, z: 0 },
				origin: { x: 0.5, y: 0.45, z: 0.5 },
				scale: 3.6
			},
		"*-ruined": {
			translation: { x: 0, y: 0.36, z: 0 },
			rotation: { x: 0, y: 0, z: 0 },
			origin: { x: 0.5, y: 0.45, z: 0.5 },
			scale: 3.6
		},
		"*": {
				translation: { x: 0, y: 0, z: 0 },
				rotation: { x: 0, y: 0, z: 0 },
				origin: { x: 0.5, y: 0.45, z: 0.5 },
				scale: 3.6
			}
	},
	tpHandTransformByType: {
		"club-scrap-scrap": {
				translation: { x: -0.85, y: -0.6, z: -0.06 },
				rotation: { x: 90, y: 1, z: 0 },
				scale: 0.85
			},
		"club-scrapmace-scrap": {
				translation: { x: -0.73, y: -0.58, z: -0.05 },
				rotation: { x: 90, y: 1, z: 0 },
				scale: 0.9
			},
		"*-ruined": {
				translation: { x: -0.8, y: -0.57, z: -0.08 },
				rotation: { x: 90, y: 1, z: 0 },
				scale: 0.85
		},
		"*": {
				translation: { x: -0.9, y: -0.6, z: -0.6 },
				rotation: { x: 90, y: 1, z: 0 },
				scale: 0.85
			}
	}
}
