{
	code: "armor",
	heldTpIdleAnimation: "holdunderarm",
	variantgroups: [
		{ code: "bodypart",  states: ["head", "body", "legs"] },
		{ code: "construction",  states: [ "hide" ]},
		{ code: "material", states: ["bear-black", "bear-brown", "bear-panda", "bear-polar", "bear-sun" ]},
	],
	shapeByType: {
		"armor-*": { base: "entity/humanoid/seraph/armor/hide/bear/{bodypart}" }
	},
	texturesByType: {
		"*": {
			"seraph": { base: "block/transparent" },
			"material": { base: "entity/humanoid/serapharmor/hide/bear/{material}" }
		}
	},
    behaviors: [
        { "name": "Wearable" }
    ],
	// 'keepElements names must also be added to game/entities/humanoid/player file, under the 'disableElements' attribute.
	attributes: {
		visibleDamageEffect: true,
		footStepSound: "wearable/leather*",
		handbook: {
			groupBy: ["armor-{bodypart}-{construction}-*"]
		},
		clothesCategoryByType: {
			"armor-head-*": "armorhead",
			"armor-body-*": "armorbody",
			"armor-legs-*": "armorlegs",
		},
		warmthByType: {
			"*-bear-black": 1,
			"*-bear-brown": 1,
			"*-bear-panda": 0.5,
			"*-bear-polar": 1.5,
			"*-bear-sun": 0.5
		},
		attachableToEntity: {
			texturePrefixCode: "armor-{bodypart}-{construction}-{material}",
			categoryCodeByType: {
				"armor-head-*": "armorhead",
				"armor-body-*": "armorbody",
				"armor-legs-*": "armorlegs",
			},
			disableElementsByType: {
				"armor-head-*": ["hidehat", "closehat", "hoodup", "hoodupperover", "Hair tile upper part", "ponytailhigh", "ponytaillow", "Hair", "sidehigh", "sidelow", "bangs"],
				"armor-body-*": ["Waist", "hideupperarm", "hidelowerarm", "mittenfrill-l", "mittenfrill-r"],
				"armor-legs-hide-*": ["hideshoeL", "hideshoeR", "shoefluffL", "shoefluffR"]
			},
			keepElementsByType: {
				"armor-head-hide-*": ["hair-covered"],
				"armor-legs-hide-*": ["showshoeR", "showshoeL"]
			}	
		},
		protectionModifiers: {
			protectionTier: 1,
			relativeProtectionByType: {
				"*-bear-black": 0.55,
				"*-bear-brown": 0.55,
				"*-bear-panda": 0.45,
				"*-bear-polar": 0.55,
				"*-bear-sun": 0.45
			},
			flatDamageReductionByType: {
				"*-bear-black": 0.5,
				"*-bear-brown": 0.5,
				"*-bear-panda": 0.4,
				"*-bear-polar": 0.5,
				"*-bear-sun": 0.4
			},		
			perTierRelativeProtectionLoss: [0.015, 0.075],
			perTierFlatDamageReductionLoss: [0.015, 0.075]
		},
		statModifiers: {
			rangedWeaponsAcc: -0.02,
			rangedWeaponsSpeed: -0.03,
			healingeffectivness: -0.04,
			hungerrate: 0.02,
			walkSpeedByType: {
				"*-bear-black": -0.02,
				"*-bear-brown": -0.03,
				"*-bear-panda": -0.02,
				"*-bear-polar": -0.03,
				"*-bear-sun": -0.02
			}
		}
	},
	storageFlags: 128,
	creativeinventory: { "general": ["*"], "items": ["*"], "clothing": ["*"] },
	renderAlphaTest: 0.25,
	durabilityByType: {
		"armor-*-hide-bear-black": 200,
		"armor-*-hide-bear-brown": 300,
		"armor-*-hide-bear-panda": 120,
		"armor-*-hide-bear-polar": 400,
		"armor-*-hide-bear-sun": 120
	},
	combustibleProps: { },
	tpHandTransformByType: {
		"armor-head-*": {
			translation: { x: -0.82, y: -2.2, z: -0.5 },
			rotation: { x: 18, y: 169, z: 30 },
			origin: { x: 0.5, y: 1.7, z: 0.5 },
			scale: 0.64
		},
		"armor-body-*": {
			translation: { x: -1, y: -1.9, z: -0.5 },
			rotation: { x: 97, y: -168, z: 94 },
			origin: { x: 0.5, y: 1.5, z: 0.5 },
			scale: 0.67
		},
		"armor-legs-*": {
			translation: { x: -0.7, y: -0.6, z: -0.4 },
			rotation: { x: 95, y: -20, z: -91 },
			origin: { x: 0.5, y: 0.7, z: 0.5 },
			scale: 0.74
		}
	},
	guiTransformByType: {
		"armor-head-*": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -26, y: -46, z: -180 },
			origin: { x: 0.6, y: 1.72, z: 0.5 },
			scale: 2
		},
		"armor-body-*": {
			translation: { x: 3, y: 0, z: 0 },
			rotation: { x: -26, y: -46, z: -180 },
			origin: { x: 0.5, y: 1.11, z: 0.5 },
			scale: 1.37
		},
		"armor-legs-*": {
			translation: { x: 1, y: 0, z: 0 },
			rotation: { x: -26, y: -46, z: -180 },
			origin: { x: 0.5, y: 0.37, z: 0.53 },
			scale: 2.14
		}
	},
	groundTransformByType: {
		"armor-head-*": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: 0, y: 0, z: 0 },
			origin: { x: 0.34, y: 1.71, z: 0.5 },
			scale: 3.1
		},
		"armor-body-*": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: 0, y: 0, z: 90 },
			origin: { x: 0.34, y: 1.12, z: 0.5 },
			scale: 3.1
		},
		"armor-legs-*": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: 0, y: 0, z: 90 },
			origin: { x: 0.34, y: 0.3, z: 0.5 },
			scale: 3.1
		}
	}
}
