{
	code: "clothes",
	variantgroups: [
		{ code: "category",  states: ["upperbodyover"] },
		{ code: "upperbodyover", combine: "SelectiveMultiply", onVariant: "category", states: [
			"cerise-embroidered-reindeer-herder-coat", "clockmaker-tunic", "cobalt-mantle", "commoner-coat",
			"forgotten", "fur-coat", "great-steppe-mantle", "hunter-coat", "huntsmans-tunic", "king", 
			"malefactor-tunic", "marketeer", "miner", "nomad-mantle", "reindeer-herder-fur-coat", 
			"rottenking", "rotwalker", "spice-merchants-coat", "surgeon", "tailor-jacket", "travelers-earthrobe", "warm-robe"
		] },
	],
	storageFlags: 128,
	shapeByType: {
		"*-surgeon": { base: "entity/humanoid/seraph/clothing/upperbodyover/surgeon-apron" },
		"@*-(cerise-embroidered-reindeer-herder-coat|nomad-mantle|travelers-earthrobe|reindeer-herder-fur-coat|warm-robe)": {
			base: "entity/humanoid/seraph/clothing/upperbodyover/longsleeve",
			overlays: [ { base: "entity/humanoid/seraph/clothing/upperbodyover/collar-longsleeve-fancy" }]
		},
		"*-fur-coat": {
			base: "entity/humanoid/seraph/clothing/upperbodyover/longsleeve-hood",
			overlays: [ { base: "entity/humanoid/seraph/clothing/upperbodyover/collar-longsleeve-fur" }]
		},
		"*-forgotten": {
			base: "entity/humanoid/seraph/clothing/upperbodyover/longsleeve-hood",
		},
		"@*-(commoner-coat|tailor-jacket)": { 
			base: "entity/humanoid/seraph/clothing/upperbodyover/shortsleeve" },
		"@*-(clockmaker-tunic|cobalt-mantle|hunter-coat|great-steppe-mantle|huntsmans-tunic|malefactor-tunic)": {
			base: "entity/humanoid/seraph/clothing/upperbodyover/shortsleeve",
			overlays: [ { base: "entity/humanoid/seraph/clothing/upperbodyover/collar-shortsleeve-fancy" }]
		},
		"@*-(marketeer|rotwalker)": {
			base: "entity/humanoid/seraph/clothing/upperbodyover/longsleeve-extended",
			overlays: [ { base: "entity/humanoid/seraph/clothing/upperbodyover/collar-extended-full" }]
		},
		"*": { base: "entity/humanoid/seraph/clothing/upperbodyover/longsleeve" }
	},
	texturesByType: {
		"*": {
			"seraph": { base: "block/transparent" },
			"coat": { base: "entity/humanoid/seraphclothes/upperbodyover/{upperbodyover}" },
			"shirt": { base: "entity/humanoid/seraphclothes/upperbodyover/{upperbodyover}" }
		}
	},
    behaviors: [
        { "name": "Wearable" }
    ],
	attributes: {
		clothescategory: "upperbodyover",
		wearableAttachment: true,
		wearableTexturePrefixCode: null,
		handbook: {
			groupBy: ["clothes-{category}-*"]
		},
		displayable: {
			shelf: {
				behavior: "Stacking",
				category: "wearable-tops",
				shape: { base: "entity/humanoid/seraph/clothing/upperbody-folded" },
				size: { width: 11, height: 1.5, length: 7 }
			}
		}
	},
	attributesByType: {
		"*-upperbodyover-fur-coat": {
			disableElements: ["Ponytail1", "Hair tile upper part","ponytailhigh", "ponytaillow", "hair-uncovered", "hidehat", "glovefrill-r", "glovefrill-l"],
			keepElements: ["hair-covered"],
			warmth: 3
		},
		"*-forgotten": {
			disableElements: ["Ponytail1", "Hair tile upper part","ponytailhigh", "ponytaillow", "hair-uncovered", "hidehat"],
			keepElements: ["hair-covered"],
			warmth: 2
		},
		"*-cerise-embroidered-reindeer-herder-coat": {
			warmth: 4
		},
		"*-reindeer-herder-fur-coat": {
			warmth: 4
		},
		"*": {
			warmth: 2
		}
	},
	creativeinventory: { "general": ["*"], "items": ["*"], "clothing": ["*"] },
	renderAlphaTest: 0.25,
	tpHandTransform: {
		translation: { x: -0.3, y: -0.9, z: -0.7 },
		rotation: { x: -71, y: 180, z: 83 },
		scale: 0.55
	},
	guiTransformByType: {
		"*-commoner-coat": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.28, z: 0.4 },
			scale: 1.8		
		},
		"*-spice-merchants-coat": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.26, z: 0.4 },
			scale: 1.5
		},
		"*-nomad-mantle": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.26, z: 0.4 },
			scale: 1.5
		},
		"*-malefactor-tunic": {
			rotate: false,
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.26, z: 0.45 },
			scale: 1.65
		},
		"*-hunter-coat": {
			rotate: false,
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.3, z: 0.45 },
			scale: 1.8
		},
		"*-clockmaker-tunic": {
			rotate: false,
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.36, z: 0.45 },
			scale: 1.96
		},
		"*-tailor-jacket": {
			rotate: false,
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.2, z: 0.45 },
			scale: 1.55
		},
		"*-reindeer-herder-fur-coat": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.15, y: 1.28, z: 0.34 },
			scale: 1.55
		},
		"*-cerise-embroidered-reindeer-herder-coat": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.15, y: 1.28, z: 0.34 },
			scale: 1.55
		},
		"*-warm-robe": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.15, y: 1.28, z: 0.34 },
			scale: 1.55
		},
		"*-marketeer": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.27, z: 0.4 },
			scale: 1.66
		},
		"*-rotwalker": {
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.36, z: 0.4 },
			scale: 1.68
		},
		"*": {
			rotate: false,
			translation: { x: 0, y: 0, z: 0 },
			rotation: { x: -180, y: -66, z: 18 },
			origin: { x: 0.2, y: 1.36, z: 0.4 },
			scale: 1.35
		}
	},
	groundTransform: {
		translation: { x: 0.05, y: 0.05, z: 0 },
		rotation: { x: 0, y: 0, z: -87 },
		origin: { x: 0.5, y: 0.5, z: 0.5299 },
		scale: 2.19
	}
}
