{
	code: "stackrandomizer-clutter",
	class: "ItemStackRandomizer",
	variantgroups: [
		{ code: "type", states: [
			"displaycase", 
			"workshop-basic", 
			"scribe", 
			"furniture",
			"science",
			"intact", 
			"lab", 
			"chains-and-fences", 
			"workshop-advanced", 
			"ruined-weapons", 
			"ruined-toys-clothing",
			"tobias"
		  ] 
		}
	],
	attributesByType: {
		"*-displaycase": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "displaycase-aged1", chance: 1 },
				{ type: "block", code: "displaycase-aged2", chance: 1 },
				{ type: "block", code: "displaycase-aged4", chance: 1 }
			]
		},
		"*-workshop-basic": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "anvil-broken1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "anvil-broken2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "anvil-broken3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "brazier2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "brazier3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "brazier4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-tools1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-tools2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-tools3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-tools4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-woodworkingtools", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-spear", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-scythe", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-shovel", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-pickaxe", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-saw", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-hoe", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-knife", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-axe", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-hammer", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pulley", collected: true } }
			]
		},
		"*-scribe": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "candlestubs-bunch1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "candlestubs-bunch2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "candlestubs-bunch3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "candlestubs-bunch4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "candlestub-single", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lecturn-ruined", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/lecturn-ruined", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/lecturn-aged-empty", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/lecturn-aged-book-open-tall", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/lecturn-aged-book-closed", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/bookpile-aged1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/bookpile-aged2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/bookpile-aged3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/bookpile-aged4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bookshelves/bookpile-aged5", collected: true } },
				{ type: "item", code: "paper-parchment", quantity: { avg: 3, var: 2 }, chance: 5 },
				{ type: "item", code: "book-rotten-gray", chance: 1 },
				{ type: "item", code: "book-rotten-brown", chance: 1 },
				{ type: "item", code: "book-rotten-rust", chance: 1 },
				{ type: "item", code: "book-rotten-purple", chance: 1 },
				{ type: "item", code: "book-rotten-green", chance: 1 },
				{ type: "item", code: "clothes-face-glasses", chance: 1 },
				{ type: "item", code: "inkandquill", chance: 1 },
				{ type: "item", code: "omokpiece-lead", chance: 1 },
				{ type: "item", code: "omokpiece-gold", chance: 1 }
			]
		},	
		"*-furniture": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "music-box1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "music-box2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "music-box3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "music-box4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lantern/ground1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lantern/ground2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lantern/ground3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lantern/ground4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lantern/ground5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lantern/ground6", collected: true } }
			]
		},
		"*-science": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "abacus1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "abacus2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "abacus3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "abacus4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "alidade", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "armillary1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "armillary2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "armillary3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "astrolabe", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "diptych-dial", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "equi-dial", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-precisiontools", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-drafting-instrument", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe6", collected: true } }
			]
		},
		"*-intact": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lecturn-empty", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lecturn-book-closed", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "lecturn-book-open", collected: true } }
			]
		},
		"*-lab": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bucket1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bucket2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "bucket3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-flasks1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-flasks2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-lab-equipment", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-pottery1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-pottery2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-pottery3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-medical", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass6", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass7", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass8", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-glass9", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-metal1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-metal2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tank-metal3", collected: true } }
			]
		},
		"*-chains-and-fences": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-ceiling", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-ceiling-hook", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-double-ceiling-manacles", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-double-end1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-double-end2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-double-end-manacles", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-double-section", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-end1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-end2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-end-hook", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-floor", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/chain-section", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/hook-ceiling", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/manacles-ceiling", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/manacles-floor", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chains/manacles-wall", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chandelier-ruined1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chandelier-ruined2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "chandelier-ruined3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/empty1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/empty2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/empty3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/ew1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/ew2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/ew3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/nesw1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/nesw2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/nesw3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/nsw1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/nsw2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/nsw3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/sw1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/sw2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/sw3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/w1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/w2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "fence/iron/w3", collected: true } }
			]
		},
		"*-workshop-advanced": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "locust-lamp", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "locust-body", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "locust-full", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "locust-limbs1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "locust-limbs2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "locust-parts", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine6", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine7", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "machine8", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mech-part1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mech-part2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mech-part5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mechanics-ruined1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mechanics-ruined2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mechanics-ruined3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mechanics-ruined4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "mechanics-ruined5", collected: true } }
			]
		},
		"*-ruined-weapons": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon6", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon7", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-weapon8", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "tool-spear", collected: true } }
			]
		},
		"*-ruined-toys-clothing": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy6", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy7", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy8", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy9", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "toy10", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-cloth1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-cloth2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-cloth3", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-cloth4", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pile-cloth5", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "washboard1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "washboard2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "washboard3", collected: true } }
			]
		},
		"*-tobias": {
			handbook: { exclude: true },
			stacks: [
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "alidade", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "armillary1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "armillary-pristine", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "globe2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "table-noble-double", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "table-noble-single", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art1", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art8", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art9", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art10", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art18", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "pottery/art20", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "scrap-art2", collected: true } },
				{ type: "block", code: "clutter", chance: 1, attributes: { type: "scrap-art4", collected: true } },
			]
		}
	},
	maxstacksize: 1,
	texture: { base: "item/meta/randomizer/clutter/{type}" },
	creativeinventory: { "meta": ["*"] },
	materialDensity: 600
}