Module:ItemSprite

From Mo' Creatures Wiki
Jump to: navigation, search
This is the documentation page, it will be transcluded into the main module page. See Template:Documentation for more information

This module implements {{sprite}}. It should generally be invoked directly on template pages, rather than using the sprite template.

Parent arguments are automatically merged with directly passed arguments (the latter overwriting the former) and all arguments are normalised to trim whitespace and set empty arguments to nil.

Dependencies




return {
	settings = {
		image = 'ItemCSS.png',
		name = 'Item',
		pos = 384,
		stylesheet = true,
		url = require( [[Module:Sprite]] ).getUrl( 'ItemCSS.png', 'version=1564852988448', 'item-sprite' ),
	},
	sections = {
		{ name = 'Armor', id = 21 },
		{ name = 'Weapons', id = 22 },
		{ name = 'Tools', id = 23 },
		{ name = 'Food', id = 24 },
		{ name = 'Decoration and utility', id = 25 },
		{ name = 'Manufactured', id = 27 },
		{ name = 'Raw materials', id = 29 },
		{ name = 'Music discs', id = 30 },
		{ name = 'Plants', id = 31 },
		{ name = 'Wool dyes', id = 33 },
		{ name = 'Creative only', id = 14 },
		{ name = 'Unused', id = 2 },
		{ name = 'Removed', id = 1 },
	},
	ids = {
		['all-dyes'] = { pos = 376, section = 33 },
		['anchovy-spawn-egg'] = { pos = 101, section = 14 },
		['angelfish-spawn-egg'] = { pos = 102, section = 14 },
		['angler-spawn-egg'] = { pos = 103, section = 14 },
		['ant-spawn-egg'] = { pos = 104, section = 14 },
		apple = { pos = 92, section = 24 },
		['bass-spawn-egg'] = { pos = 105, section = 14 },
		['bee-spawn-egg'] = { pos = 106, section = 14 },
		['big-cat-claw'] = { pos = 15, section = 29 },
		['big-golem-spawn-egg'] = { pos = 107, section = 14 },
		['bird-spawn-egg'] = { pos = 108, section = 14 },
		['black-bear-spawn-egg'] = { pos = 110, section = 14 },
		['black-chitin'] = { pos = 57, section = 29 },
		['black-dye'] = { pos = 373, section = 33 },
		['black-kitty-bed'] = { pos = 63, section = 27 },
		['blue-dye'] = { pos = 374, section = 33 },
		['blue-kitty-bed'] = { pos = 64, section = 27 },
		bo = { pos = 430, section = 22 },
		['boar-spawn-egg'] = { pos = 111, section = 14 },
		bone = { pos = 552, section = 29 },
		['bone-amulet'] = { pos = 3, section = 27 },
		['bone-amulet-full'] = { pos = 95, section = 27 },
		bread = { pos = 90, section = 24 },
		['brown-dye'] = { pos = 375, section = 33 },
		['brown-kitty-bed'] = { pos = 65, section = 27 },
		['builder-hammer'] = { pos = 21, section = 14 },
		['bunny-spawn-egg'] = { pos = 112, section = 14 },
		['butterfly-spawn-egg'] = { pos = 179, section = 14 },
		['cave-ogre-spawn-egg'] = { pos = 113, section = 14 },
		['cave-scorpion-boots'] = { pos = 26, section = 21 },
		['cave-scorpion-helmet'] = { pos = 27, section = 21 },
		['cave-scorpion-legs'] = { pos = 28, section = 21 },
		['cave-scorpion-plate-chest'] = { pos = 29, section = 21 },
		['cave-scorpion-sting'] = { pos = 435, section = 29 },
		['cave-scorpion-sword'] = { pos = 442, section = 22 },
		chitin = { pos = 58, section = 29 },
		['clownfish-spawn-egg'] = { pos = 114, section = 14 },
		['cod-spawn-egg'] = { pos = 115, section = 14 },
		['cooked-crab'] = { pos = 513, section = 24 },
		['cooked-ostrich'] = { pos = 1, section = 24 },
		['cooked-rat'] = { pos = 349, section = 24 },
		['cooked-turkey'] = { pos = 488, section = 24 },
		['crab-spawn-egg'] = { pos = 116, section = 14 },
		['crafted-saddle'] = { pos = 535, section = 25 },
		creaturepedia = { pos = 181, section = 2 },
		['cricket-spawn-egg'] = { pos = 117, section = 14 },
		['crocodile-spawn-egg'] = { pos = 118, section = 14 },
		['crystal-mount-armor'] = { pos = 414, section = 21 },
		['cyan-dye'] = { pos = 602, section = 33 },
		['cyan-kitty-bed'] = { pos = 66, section = 27 },
		['deer-spawn-egg'] = { pos = 119, section = 14 },
		diamond = { pos = 557, section = 29 },
		['diamond-horse-armor'] = { pos = 82, section = 1 },
		['diamond-tusks'] = { pos = 4, section = 27 },
		['dirt-scorpion-boots'] = { pos = 30, section = 21 },
		['dirt-scorpion-helmet'] = { pos = 31, section = 21 },
		['dirt-scorpion-legs'] = { pos = 33, section = 21 },
		['dirt-scorpion-plate-chest'] = { pos = 34, section = 21 },
		['dirt-scorpion-sting'] = { pos = 436, section = 29 },
		['dirt-scorpion-sword'] = { pos = 441, section = 22 },
		['dolphin-spawn-egg'] = { pos = 120, section = 14 },
		['dragonfly-spawn-egg'] = { pos = 121, section = 14 },
		['duck-spawn-egg'] = { pos = 122, section = 14 },
		dyes = { pos = 376, section = 33 },
		egg = { pos = 499, section = 24 },
		['elephant-chest'] = { pos = 524, section = 25 },
		['elephant-garment'] = { pos = 236, section = 25 },
		['elephant-harness'] = { pos = 43, section = 25 },
		['elephant-howdah'] = { pos = 210, section = 25 },
		['elephant-spawn-egg'] = { pos = 123, section = 14 },
		['ent-spawn-egg'] = { pos = 124, section = 14 },
		['essence-of-darkness'] = { pos = 45, section = 27 },
		['essence-of-fire'] = { pos = 48, section = 27 },
		['essence-of-light'] = { pos = 54, section = 27 },
		['essence-of-undead'] = { pos = 55, section = 27 },
		['fairy-amulet'] = { pos = 5, section = 27 },
		['fairy-amulet-full'] = { pos = 96, section = 27 },
		feather = { pos = 560, section = 29 },
		['fire-ogre-spawn-egg'] = { pos = 125, section = 14 },
		['firefly-spawn-egg'] = { pos = 126, section = 14 },
		['fish-bowl'] = { pos = 52, section = 1 },
		['fish-net'] = { pos = 81, section = 23 },
		['fish-net-full'] = { pos = 100, section = 23 },
		['fishy-spawn-egg'] = { pos = 127, section = 14 },
		['flame-wraith-spawn-egg'] = { pos = 128, section = 14 },
		['fly-spawn-egg'] = { pos = 129, section = 14 },
		['fox-spawn-egg'] = { pos = 130, section = 14 },
		['frost-chitin'] = { pos = 59, section = 29 },
		['frost-scorpion-boots'] = { pos = 35, section = 21 },
		['frost-scorpion-helmet'] = { pos = 36, section = 21 },
		['frost-scorpion-legs'] = { pos = 37, section = 21 },
		['frost-scorpion-plate-chest'] = { pos = 39, section = 21 },
		['frost-scorpion-sting'] = { pos = 437, section = 29 },
		['frost-scorpion-sword'] = { pos = 443, section = 22 },
		fur = { pos = 109, section = 29 },
		['fur-boots'] = { pos = 40, section = 21 },
		['fur-chest'] = { pos = 41, section = 21 },
		['fur-helmet'] = { pos = 42, section = 21 },
		['fur-legs'] = { pos = 46, section = 21 },
		['ghast-tear'] = { pos = 89, section = 29 },
		['ghost-amulet'] = { pos = 6, section = 27 },
		['ghost-amulet-full'] = { pos = 97, section = 27 },
		['goat-spawn-egg'] = { pos = 131, section = 14 },
		['gold-horse-armor'] = { pos = 83, section = 1 },
		['golden-apple'] = { pos = 502, section = 24 },
		['goldfish-spawn-egg'] = { pos = 132, section = 14 },
		['gray-dye'] = { pos = 603, section = 33 },
		['gray-kitty-bed'] = { pos = 67, section = 27 },
		['green-dye'] = { pos = 604, section = 33 },
		['green-kitty-bed'] = { pos = 68, section = 27 },
		['green-ogre-spawn-egg'] = { pos = 133, section = 14 },
		['grizzly-bear-spawn-egg'] = { pos = 134, section = 14 },
		gunpowder = { pos = 61, section = 29 },
		['hay-stack'] = { pos = 24, section = 24 },
		['heart-of-darkness'] = { pos = 16, section = 29 },
		['heart-of-fire'] = { pos = 17, section = 29 },
		['heart-of-undead'] = { pos = 18, section = 29 },
		['hellrat-spawn-egg'] = { pos = 135, section = 14 },
		helmet = { pos = 94, section = 21 },
		hide = { pos = 553, section = 29 },
		['hide-boots'] = { pos = 429, section = 21 },
		['hide-chest'] = { pos = 424, section = 21 },
		['hide-helmet'] = { pos = 426, section = 21 },
		['hide-legs'] = { pos = 425, section = 21 },
		['hippotang-spawn-egg'] = { pos = 136, section = 14 },
		hoe = { pos = 470, section = 23 },
		['horse-spawn-egg'] = { pos = 137, section = 14 },
		['horsemob-spawn-egg'] = { pos = 138, section = 14 },
		['iron-axe'] = { pos = 87, section = 23 },
		['iron-helmet'] = { pos = 94, section = 21 },
		['iron-hoe'] = { pos = 470, section = 23 },
		['iron-horse-armor'] = { pos = 84, section = 1 },
		['iron-pickaxe'] = { pos = 471, section = 23 },
		['iron-shovel'] = { pos = 472, section = 23 },
		['iron-sword'] = { pos = 22, section = 22 },
		['iron-tusks'] = { pos = 7, section = 27 },
		['jellyfish-spawn-egg'] = { pos = 139, section = 14 },
		katana = { pos = 432, section = 22 },
		key = { pos = 329, section = 1 },
		['kitty-bed'] = { pos = 69, section = 27 },
		['kitty-spawn-egg'] = { pos = 180, section = 14 },
		['komodo-dragon-spawn-egg'] = { pos = 140, section = 14 },
		lead = { pos = 530, section = 25 },
		leather = { pos = 570, section = 29 },
		['leoger-spawn-egg'] = { pos = 141, section = 14 },
		['leopard-spawn-egg'] = { pos = 142, section = 14 },
		['liard-spawn-egg'] = { pos = 143, section = 14 },
		['liger-spawn-egg'] = { pos = 144, section = 14 },
		['light-blue-dye'] = { pos = 605, section = 33 },
		['light-blue-kitty-bed'] = { pos = 70, section = 27 },
		['light-gray-dye'] = { pos = 606, section = 33 },
		['lime-dye'] = { pos = 607, section = 33 },
		['lime-kitty-bed'] = { pos = 71, section = 27 },
		['lion-spawn-egg'] = { pos = 145, section = 14 },
		['lither-spawn-egg'] = { pos = 146, section = 14 },
		['litter-box'] = { pos = 8, section = 27 },
		['magenta-dye'] = { pos = 608, section = 33 },
		['magenta-kitty-bed'] = { pos = 72, section = 27 },
		['maggot-spawn-egg'] = { pos = 147, section = 14 },
		['mammoth-platform'] = { pos = 44, section = 25 },
		['manderin-spawn-egg'] = { pos = 148, section = 14 },
		['manta-ray-spawn-egg'] = { pos = 149, section = 14 },
		['manticore-spawn-egg'] = { pos = 150, section = 14 },
		medallion = { pos = 9, section = 27 },
		['mini-golem-spawn-egg'] = { pos = 151, section = 14 },
		['mole-spawn-egg'] = { pos = 152, section = 14 },
		['mouse-spawn-egg'] = { pos = 153, section = 14 },
		['mushroom-stew'] = { pos = 93, section = 24 },
		['nether-cannon'] = { pos = 182, section = 2 },
		['nether-chitin'] = { pos = 60, section = 29 },
		['nether-scorpion-boots'] = { pos = 47, section = 21 },
		['nether-scorpion-helmet'] = { pos = 49, section = 21 },
		['nether-scorpion-legs'] = { pos = 50, section = 21 },
		['nether-scorpion-plate-chest'] = { pos = 51, section = 21 },
		['nether-scorpion-sting'] = { pos = 438, section = 29 },
		['nether-scorpion-sword'] = { pos = 444, section = 22 },
		nunchaku = { pos = 433, section = 22 },
		omelet = { pos = 485, section = 24 },
		['orange-dye'] = { pos = 609, section = 33 },
		['orange-kitty-bed'] = { pos = 73, section = 27 },
		['ostrich-spawn-egg'] = { pos = 154, section = 14 },
		['panda-spawn-egg'] = { pos = 155, section = 14 },
		['panthard-spawn-egg'] = { pos = 156, section = 14 },
		['panther-spawn-egg'] = { pos = 157, section = 14 },
		['panthger-spawn-egg'] = { pos = 158, section = 14 },
		['pet-amulet'] = { pos = 11, section = 27 },
		['pet-amulet-full'] = { pos = 98, section = 27 },
		['pet-food'] = { pos = 62, section = 27 },
		pickaxe = { pos = 471, section = 23 },
		['pink-dye'] = { pos = 610, section = 33 },
		['pink-kitty-bed'] = { pos = 74, section = 27 },
		['piranha-spawn-egg'] = { pos = 159, section = 14 },
		['polar-bear-spawn-egg'] = { pos = 160, section = 14 },
		['purple-dye'] = { pos = 611, section = 33 },
		['purple-kitty-bed'] = { pos = 75, section = 27 },
		['raccoon-spawn-egg'] = { pos = 161, section = 14 },
		['rat-burger'] = { pos = 509, section = 24 },
		['rat-spawn-egg'] = { pos = 162, section = 14 },
		['raw-crab'] = { pos = 348, section = 24 },
		['raw-fish'] = { pos = 56, section = 24 },
		['raw-ostrich'] = { pos = 2, section = 24 },
		['raw-porkchop'] = { pos = 88, section = 24 },
		['raw-rat'] = { pos = 514, section = 24 },
		['raw-turkey'] = { pos = 487, section = 24 },
		['raw-turtle'] = { pos = 494, section = 24 },
		['red-dye'] = { pos = 612, section = 33 },
		['red-kitty-bed'] = { pos = 76, section = 27 },
		redstone = { pos = 578, section = 29 },
		['redstone-dust'] = { pos = 578, section = 29 },
		['reptile-boots'] = { pos = 422, section = 21 },
		['reptile-helmet'] = { pos = 272, section = 21 },
		['reptile-hide'] = { pos = 554, section = 29 },
		['reptile-legs'] = { pos = 341, section = 21 },
		['reptile-plate'] = { pos = 163, section = 21 },
		['roach-spawn-egg'] = { pos = 164, section = 14 },
		rope = { pos = 53, section = 1 },
		['rotten-flesh'] = { pos = 85, section = 24 },
		saddle = { pos = 534, section = 25 },
		sai = { pos = 434, section = 22 },
		['salmon-spawn-egg'] = { pos = 165, section = 14 },
		['scorpion-spawn-egg'] = { pos = 166, section = 14 },
		['scorpion-sting'] = { pos = 436, section = 29 },
		['scorpion-sword'] = { pos = 441, section = 22 },
		['scroll-of-freedom'] = { pos = 12, section = 27 },
		['scroll-of-reset-owner'] = { pos = 23, section = 14 },
		['scroll-of-sale'] = { pos = 77, section = 27 },
		seeds = { pos = 10, section = 31 },
		['shark-spawn-egg'] = { pos = 167, section = 14 },
		['shark-sword'] = { pos = 440, section = 22 },
		['shark-teeth'] = { pos = 19, section = 29 },
		shears = { pos = 474, section = 23 },
		shovel = { pos = 472, section = 23 },
		['silver-kitty-bed'] = { pos = 78, section = 27 },
		['silver-skeleton-spawn-egg'] = { pos = 168, section = 14 },
		['silver-sword'] = { pos = 439, section = 22 },
		['sky-amulet'] = { pos = 13, section = 27 },
		['sky-amulet-full'] = { pos = 99, section = 27 },
		slimeball = { pos = 580, section = 29 },
		['snail-spawn-egg'] = { pos = 169, section = 14 },
		['snake-spawn-egg'] = { pos = 170, section = 14 },
		stick = { pos = 86, section = 29 },
		['stingray-spawn-egg'] = { pos = 171, section = 14 },
		['stone-axe'] = { pos = 475, section = 23 },
		['stone-hoe'] = { pos = 476, section = 23 },
		['stone-pickaxe'] = { pos = 477, section = 23 },
		['stone-shovel'] = { pos = 478, section = 23 },
		['stone-sword'] = { pos = 32, section = 22 },
		string = { pos = 582, section = 29 },
		['sugar-lump'] = { pos = 80, section = 24 },
		['teleport-staff'] = { pos = 25, section = 14 },
		['tiger-spawn-egg'] = { pos = 172, section = 14 },
		['turkey-spawn-egg'] = { pos = 173, section = 14 },
		['turtle-soup'] = { pos = 508, section = 24 },
		['turtle-spawn-egg'] = { pos = 174, section = 14 },
		tusks = { pos = 7, section = 27 },
		['unicorn-horn'] = { pos = 20, section = 29 },
		['werewolf-spawn-egg'] = { pos = 175, section = 14 },
		wheat = { pos = 91, section = 27 },
		['wheat-seeds'] = { pos = 10, section = 31 },
		whip = { pos = 459, section = 23 },
		['white-dye'] = { pos = 376, section = 33 },
		['white-kitty-bed'] = { pos = 69, section = 27 },
		['wild-wolf-spawn-egg'] = { pos = 176, section = 14 },
		['wood-tusks'] = { pos = 14, section = 27 },
		['wooden-axe'] = { pos = 480, section = 23 },
		['wooden-hoe'] = { pos = 481, section = 23 },
		['wooden-pickaxe'] = { pos = 482, section = 23 },
		['wooden-shovel'] = { pos = 483, section = 23 },
		['wooden-sword'] = { pos = 38, section = 22 },
		['wool-ball'] = { pos = 383, section = 27 },
		['wraith-spawn-egg'] = { pos = 177, section = 14 },
		['wyvern-portal-staff'] = { pos = 469, section = 23 },
		['wyvern-spawn-egg'] = { pos = 178, section = 14 },
		['yellow-dye'] = { pos = 613, section = 33 },
		['yellow-kitty-bed'] = { pos = 79, section = 27 },
		['zebra-record'] = { pos = 584, section = 30 },
	},
}