Module:Inventory slot/Aliases

local aliases = { -- Common fuel types for furnace -- ['Sugar'] = { title = '&rSugar', name = 'Glucose' }, -- Everything (items + blocks) -- ['Alchemy Mixer'] = { title = '&rAlchemy Mixer', name = 'Alchemy Mixer' }, ['Banana Seaweeds'] = { title = '&rBanana Seaweeds', name = 'Banana Seaweeds' }, ['Banana Seaweeds Block'] = { title = '&rBanana Seaweeds Block', name = 'Banana Seaweeds Block' }, ['Candied Cherry'] = { title = '&rCandied Cherry', name = 'Candied Cherry' }, ['Candy Leaves'] = { title = '&rCandy Leaves', name = 'Candy Leaves' }, ['Fraise Tagada Flower'] = { title = '&rFraise Tagada Flower', name = 'Fraise Tagada Flower' }, ['Marshmallow Flower'] = { title = '&rMarshmallow Flower', name = 'Marshmallow Flower' }, ['Marshmallow Slice'] = { title = '&rMarshmallow Slice', name = 'Marshmallow Slice' }, ['Marshmallow Ladder'] = { title = '&rMarshmallow Ladder', name = 'Marshmallow Ladder' }, ['Candy Sapling'] = { title = '&rCandy Sapling', name = 'Candy Sapling' }, ['Acid Mint Flower'] = { title = '&rAcid Mint Flower', name = 'Acid Mint Flower' }, ['Cotton Candy Web'] = { title = '&rCotton Candy Web', name = 'Cotton Candy Web' }, ['Honeycomb'] = { title = '&rHoneycomb', name = 'Honeycomb' }, ['Honey Lamp'] = { title = '&rHoney Lamp', name = 'Honey Lamp' }, ['Honey Shard'] = { title = '&rHoney Shard', name = 'Honey Shard' }, ['Lollipop'] = { title = '&rLollipop', name = 'Lollipop' }, ['Lollipop Seeds'] = { title = '&rLollipop Seeds', name = 'Lollipop Seeds' }, ['Licorice Helmet'] = { title = '&rLicorice Helmet', name = 'Licorice Helmet' }, ['Licorice Chestplate'] = { title = '&rLicorice Chestplate', name = 'Licorice Chestplate' }, ['Licorice Leggings'] = { title = '&rLicorice Leggings', name = 'Licorice Leggings' }, ['Licorice Boots'] = { title = '&rLicorice Boots', name = 'Licorice Boots' }, ['Marshmallow Slab'] = { title = '&rMarshmallow Slab', name = 'Marshmallow Slab' }, ['Light Marshmallow Slab'] = { title = '&rLight Marshmallow Slab', name = 'Light Marshmallow Slab' }, ['Dark Marshmallow Slab'] = { title = '&rDark Marshmallow Slab', name = 'Dark Marshmallow Slab' }, ['Licorice Slab'] = { title = '&rLicorice Slab', name = 'Licorice Slab' }, ['Candy Cane Slab'] = { title = '&rCandy Cane Slab', name = 'Candy Cane Slab' }, ['Cotton Candy Slab'] = { title = '&rCotton Candy Slab', name = 'Cotton Candy Slab' }, ['Sweet Grass'] = { title = '&rSweet Grass', name = 'Sweet Grass' }, ['Dragibus'] = { title = '&rDragibus', name = 'Dragibus' }, ['Dragibus on a Stick'] = { title = '&rDragibus on a Stick', name = 'Dragibus on a Stick' }, ['Marshmallow Sword'] = { title = '&rMarshmallow Sword', name = 'Marshmallow Sword', text = '/&9+4 Attack Damage' }, ['Honeycomb Sword'] = { title = '&rHoneycomb Sword', name = 'Honeycomb Sword', text = '/&9+6 Attack Damage' }, ['Licorice Sword'] = { title = '&rLicorice Sword', name = 'Licorice Sword', text = '/&9+5 Attack Damage' }, ['Licorice Short Sword'] = { title = '&rLicorice Short Sword', name = 'Licorice Short Sword', text = '/&9+5 Attack Damage/+1 Reach' }, ['PEZ Sword'] = { title = '&rPEZ Sword', name = 'PEZ Sword', text = '/&9+7.4 Attack Damage' }, ['Waffle'] = { title = '&rWaffle', name = 'Waffle' }, ['Waffle Nugget'] = { title = '&rWaffle Nugget', name = 'Waffle Nugget' }, ['Marshmallow Stairs'] = { title = '&rMarshmallow Stairs', name = 'Marshmallow Stairs' }, ['Licorice Stairs'] = { title = '&rLicorice Stairs', name = 'Licorice Stairs' }, ['Candy Cane Stairs'] = { title = '&rCandy Cane Stairs', name = 'Candy Cane Stairs' }, ['Light Marshmallow Stairs'] = { title = '&rLight Marshmallow Stairs', name = 'Light Marshmallow Stairs' }, ['Dark Marshmallow Stairs'] = { title = '&rDark Marshmallow Stairs', name = 'Dark Marshmallow Stairs' }, ['Marshmallow Stick'] = { title = '&rMarshmallow Stick', name = 'Marshmallow Stick' }, ['PEZ'] = { title = '&rPEZ', name = 'PEZ' }, ['Licorice'] = { title = '&rLicorice', name = 'Licorice' }, ['Candy Cane'] = { title = '&rCandy Cane', name = 'Candy Cane' }, ['Honey Torch'] = { title = '&rHoney Torch', name = 'Honey Torch' }, ['Marshmallow Log'] = { title = '&rMarshmallow Log', name = 'Marshmallow Log' }, ['Candy Cane Block'] = { title = '&rCandy Cane Block', name = 'Candy Cane Block' }, ['Candy Cane Wall'] = { title = '&rCandy Cane Wall', name = 'Candy Cane Wall' }, ['Candy Cane Fence'] = { title = '&rCandy Cane Fence', name = 'Candy Cane Fence' }, ['Sugar Block'] = { title = '&rSugar Block', name = 'Sugar Block' }, ['Sugar Furnace'] = { title = '&rSugar Furnace', name = 'Sugar Furnace' }, ['Licorice Block'] = { title = '&rLicorice Block', name = 'Licorice Block' }, ['Licorice Bricks'] = { title = '&rLicorice Bricks', name = 'Licorice Bricks' }, ['Sugar Factory'] = { title = '&rSugar Factory', name = 'Sugar Factory' }, ['Fork'] = { title = '&rFork', name = 'Fork' }, ['Grenadine Bucket'] = { title = '&rGrenadine Bucket', name = 'Grenadine Bucket' }, ['Gummy'] = { title = '&rGummy', name = 'Gummy' }, ['Gummy Ball'] = { title = '&rGummy Ball', name = 'Gummy Ball' }, ['Hot Gummy'] = { title = '&rHot Gummy', name = 'Hot Gummy' }, ['Jawbreaker Block'] = { title = '&rJawbreaker Block', name = 'Jawbreaker Block' }, ['Jawbreaker Light'] = { title = '&rJawbreaker Light', name = 'Jawbreaker Light' }, ['Jelly Dungeon Lock'] = { title = '&rJelly Dungeon Lock', name = 'Jelly Dungeon Lock' }, ['Marshmallow Chest'] = { title = '&rMarshmallow Chest', name = 'Marshmallow Chest' }, ['Honeycomb Block'] = { title = '&rHoneycomb Block', name = 'Honeycomb Block' }, ['Cranfish Scale'] = { title = '&rCranfish Scale', name = 'Cranfish Scale' }, ['Cranberry Spikes'] = { title = '&rCranberry Spikes', name = 'Cranberry Spikes' }, ['Nougat Head'] = { title = '&rNougat Head', name = 'Nougat Head' }, ['Sugar Crystal'] = { title = '&rSugar Crystal', name = 'Sugar Crystal' }, ['Sugar Spikes'] = { title = '&rSugar Spikes', name = 'Sugar Spikes' }, ['Raspberry Chain'] = { title = '&rRaspberry Chain', name = 'Raspberry Chain' }, ['Raspberry Block'] = { title = '&rRaspberry Block', name = 'Raspberry Block' }, ['Mint'] = { title = '&rMint', name = 'Mint' }, ['Mint Block'] = { title = '&rMint Block', name = 'Mint Block' }, ['PEZ Dust'] = { title = '&rPEZ Dust', name = 'PEZ Dust' }, ['PEZ Block'] = { title = '&rPEZ Block', name = 'PEZ Block' }, ['Cotton Candy'] = { title = '&rCotton Candy', name = 'Cotton Candy' }, ['Cotton Candy Block'] = { title = '&rCotton Candy Block', name = 'Cotton Candy Block' }, ['Cotton Candy Bed'] = { title = '&rCotton Candy Bed', name = 'Cotton Candy Bed' }, ['Jelly Shock Absorber'] = { title = '&rJelly Shock Absorber', name = 'Jelly Shock Absorber' }, ['Trampojelly'] = { title = '&rTrampojelly', name = 'Trampojelly' }, ['Red Trampojelly'] = { title = '&rRed Trampojelly', name = 'Red Trampojelly' }, ['Soft Trampojelly'] = { title = '&rSoft Trampojelly', name = 'Soft Trampojelly' }, ['Caramel Glass'] = { title = '&rCaramel Glass', name = 'Caramel Glass' }, ['Caramel Glass Pane'] = { title = '&rCaramel Glass Pane', name = 'Caramel Glass Pane' }, ['Trampojelly Boots'] = { title = '&rTrampojelly Boots', name = 'Trampojelly Boots' }, ['Water Mask'] = { title = '&rWater Mask', name = 'Water Mask' }, ['Flour Block'] = { title = '&rFlour Block', name = 'Flour Block' }, ['Pudding'] = { title = '&rPudding', name = 'Pudding' }, ['Nougat Powder'] = { title = '&rNougat Powder', name = 'Nougat Powder' }, ['Nougat Block'] = { title = '&rNougat Block', name = 'Nougat Block' }, ['Chewing-gum'] = { title = '&rChewing-gum', name = 'Chewing-gum' }, ['Nougat Dynamite'] = { title = '&rNougat Dynamite', name = 'Nougat Dynamite' }, ['Chewing-gum Dynamite'] = { title = '&rChewing-gum Dynamite', name = 'Chewing-gum Dynamite' }, ['Chewing-gum Puddle'] = { title = '&rChewing-gum Puddle', name = 'Chewing-gum Puddle' }, ['Chewing-gum Block'] = { title = '&rChewing-gum Block', name = 'Chewing-gum Block' }, ['Caramel Block'] = { title = '&rCaramel Block', name = 'Caramel Block' }, ['Caramel Bucket'] = { title = '&rCaramel Bucket', name = 'Caramel Bucket' }, ['Caramel Bow'] = { title = '&rCaramel Bow', name = 'Caramel Bow' }, ['Caramel Crossbow'] = { title = '&rCaramel Crossbow', name = 'Caramel Crossbow' }, ['Honey Bolt'] = { title = '&rHoney Bolt', name = 'Honey Bolt' }, ['Honey Arrow'] = { title = '&rHoney Arrow', name = 'Honey Arrow' }, ['Honey Ore'] = { title = '&rHoney Ore', name = 'Honey Ore' }, ['Licorice Ore'] = { title = '&rLicorice Ore', name = 'Licorice Ore' }, ['Jelly Ore'] = { title = '&rJelly Ore', name = 'Jelly Ore' }, ['PEZ Ore'] = { title = '&rPEZ Ore', name = 'PEZ Ore' }, ['Nougat Ore'] = { title = '&rNougat Ore', name = 'Nougat Ore' }, ['Marshmallow Fence'] = { title = '&rMarshmallow Fence', name = 'Marshmallow Fence' }, ['Marshmallow Door'] = { title = '&rMarshmallow Door', name = 'Marshmallow Door' }, ['Marshmallow Planks'] = { title = '&rMarshmallow Planks', name = 'Marshmallow Planks' }, ['Marshmallow Workbench'] = { title = '&rMarshmallow Workbench', name = 'Marshmallow Workbench' }, ['Chocolate Stone'] = { title = '&rChocolate Stone', name = 'Chocolate Stone' }, ['Chocolate Cobblestone'] = { title = '&rChocolate Cobblestone', name = 'Chocolate Cobblestone' }, ['Chocolate Coin'] = { title = '&rChocolate Coin', name = 'Chocolate Coin' }, ['Marshmallow Pickaxe'] = { title = '&rMarshmallow Pickaxe', name = 'Marshmallow Pickaxe' }, ['Honeycomb Pickaxe'] = { title = '&rHoneycomb Pickaxe', name = 'Honeycomb Pickaxe' }, ['Licorice Pickaxe'] = { title = '&rLicorice Pickaxe', name = 'Licorice Pickaxe' }, ['PEZ Pickaxe'] = { title = '&rPEZ Pickaxe', name = 'PEZ Pickaxe' }, ['Marshmallow Axe'] = { title = '&rMarshmallow Axe', name = 'Marshmallow Axe' }, ['Honeycomb Axe'] = { title = '&rHoneycomb Axe', name = 'Honeycomb Axe' }, ['Licorice Axe'] = { title = '&rLicorice Axe', name = 'Licorice Axe' }, ['PEZ Axe'] = { title = '&rPEZ Axe', name = 'PEZ Axe' }, ['Marshmallow Shovel'] = { title = '&rMarshmallow Shovel', name = 'Marshmallow Shovel' }, ['Honeycomb Shovel'] = { title = '&rHoneycomb Shovel', name = 'Honeycomb Shovel' }, ['Licorice Shovel'] = { title = '&rLicorice Shovel', name = 'Licorice Shovel' }, ['PEZ Shovel'] = { title = '&rPEZ Shovel', name = 'PEZ Shovel' }, ['Marshmallow Hoe'] = { title = '&rMarshmallow Hoe', name = 'Marshmallow Hoe' }, ['Honeycomb Hoe'] = { title = '&rHoneycomb Hoe', name = 'Honeycomb Hoe' }, ['Licorice Hoe'] = { title = '&rLicorice Hoe', name = 'Licorice Hoe' }, ['PEZ Hoe'] = { title = '&rPEZ Hoe', name = 'PEZ Hoe' }, ['PEZ Helmet'] = { title = '&rPEZ Helmet', name = 'PEZ Helmet' }, ['PEZ Chestplate'] = { title = '&rPEZ Chestplate', name = 'PEZ Chestplate' }, ['PEZ Leggings'] = { title = '&rPEZ Leggings', name = 'PEZ Leggings' }, ['PEZ Boots'] = { title = '&rPEZ Boots', name = 'PEZ Boots' }, ['Honeycomb Helmet'] = { title = '&rHoneycomb Helmet', name = 'Honeycomb Helmet' }, ['Honeycomb Chestplate'] = { title = '&rHoneycomb Chestplate', name = 'Honeycomb Chestplate' }, ['Honeycomb Leggings'] = { title = '&rHoneycomb Leggings', name = 'Honeycomb Leggings' }, ['Honeycomb Boots'] = { title = '&rHoneycomb Boots', name = 'Honeycomb Boots' }, ['Raw Cranfish'] = { title = '&rRaw Cranfish', name = 'Raw Cranfish' }, ['Cooked Cranfish'] = { title = '&rCooked Cranfish', name = 'Cooked Cranfish' }, ['Sugar Pill'] = { title = '&rSugar Pill', name = 'Sugar Pill' }, } -- Lists of item variants -- local itemVariants = { ['Dyed Wool'] = { 'Orange Wool', 'Magenta Wool', 'Light Blue Wool', 'Yellow Wool', 'Lime Wool', 'Pink Wool', 'Gray Wool', 'Light Gray Wool', 'Cyan Wool', 'Purple Wool', 'Blue Wool', 'Brown Wool', 'Green Wool', 'Red Wool', 'Black Wool', },	['Stained Clay'] = { 'White Hardened Clay', 'Orange Hardened Clay', 'Magenta Hardened Clay', 'Light Blue Hardened Clay', 'Yellow Hardened Clay', 'Lime Hardened Clay', 'Pink Hardened Clay', 'Gray Hardened Clay', 'Light Gray Hardened Clay', 'Cyan Hardened Clay', 'Purple Hardened Clay', 'Blue Hardened Clay', 'Brown Hardened Clay', 'Green Hardened Clay', 'Red Hardened Clay', 'Black Hardened Clay', },	['Mushroom'] = { { title = 'Mushroom', name = 'Red Mushroom' }, { title = 'Mushroom', name = 'Brown Mushroom' } }, ['Quartz Block'] = { 'Block of Quartz', 'Chiseled Quartz Block', 'Pillar Quartz Block' }, ['Red Sandstone'] = { 'Red Sandstone', 'Chiseled Red Sandstone', 'Smooth Red Sandstone' }, ['Sandstone'] = { 'Sandstone', 'Chiseled Sandstone', 'Smooth Sandstone' }, ['Stone Bricks'] = { 'Stone Bricks', 'Mossy Stone Bricks', 'Cracked Stone Bricks', 'Chiseled Stone Bricks' }, ['Stone Slab'] = { 'Stone Slab', 'Sandstone Slab', 'Cobblestone Slab', 'Bricks Slab', 'Stone Bricks Slab', 'Nether Brick Slab', 'Quartz Slab' }, } -- Animated icons -- local animatedIcons = { 'Any fuel' } for _, icon in ipairs( animatedIcons ) do aliases[icon] = icon .. '.gif' end -- Records -- local discs = { 'Jelly Queen%27s Secret Record', 'Suguard%27s Secret Record', 'Rainbow Record', 'Licorice Beetle Secret Record' } for _, disc in ipairs( discs ) do local name = disc .. ''	aliases[name] = { title = '&b' .. name, name = name, text = '' } end -- Banners and colored items -- local patterns = { 'Base Dexter Canton', 'Base Fess', 'Base Gradient', 'Base Indented', 'Base Sinister Canton', 'Bend', 'Bend Sinister', 'Bordure', 'Bordure Indented', 'Chevron', 'Chief Dexter Canton', 'Chief Fess', 'Chief Indented', 'Chief Sinister Canton', 'Creeper Charge', 'Cross', 'Fess', 'Field Masoned', 'Flower Charge', 'Gradient', 'Inverted Chevron', 'Lozenge', 'Thing', 'Pale', 'Pale Dexter', 'Pale Sinister', 'Paly', 'Per Bend', 'Per Bend Inverted', 'Per Bend Sinister', 'Per Bend Sinister Inverted', 'Per Fess', 'Per Fess Inverted', 'Per Pale', 'Per Pale Inverted', 'Roundel', 'Saltire', 'Skull Charge' } local colors = { 'White', 'Orange', 'Magenta', 'Light Blue', 'Yellow', 'Lime', 'Pink', 'Gray', 'Light Gray', 'Cyan', 'Purple', 'Blue', 'Brown', 'Green', 'Red', 'Black' } -- Firework Stars -- local fireworkStar = {} for _, color in ipairs( colors ) do local name = color .. ' Firework Star' aliases[name] = { title = 'Firework Star', name = name, text = '&7' .. color } table.insert( fireworkStar, aliases[name] ) for _, pattern in ipairs( patterns ) do name = color .. ' ' .. pattern .. ' Banner' aliases[name] = { title = 'Banner', name = name, text = '&7' .. color .. ' ' .. pattern } end end aliases['Any Firework Star'] = fireworkStar aliases['Matching Firework Star'] = fireworkStar -- Items that use the sixteen colors -- local coloredItems = { 'Banner', 'Carpet', 'Shield', 'Shulker Box', 'Stained Glass', 'Stained Glass Pane', 'Wool' } for _, item in ipairs( coloredItems ) do	local coloredItemAliases = {} for _, color in ipairs( colors ) do table.insert( coloredItemAliases, color .. ' ' .. item ) end aliases['Any ' .. item] = coloredItemAliases aliases['Matching ' .. item] = coloredItemAliases end -- Potions -- local effects = { 'Regeneration', 'Swiftness', 'Fire Resistance', 'Poison', 'Healing', 'Night Vision', 'Weakness', 'Strength', 'Slowness', 'Leaping', 'Harming', 'Water Breathing', 'Invisibility', 'Luck' } local potionItems = { ['Potion'] = { 'Water Bottle', 'Awkward Potion', 'Thick Potion', 'Mundane Potion', },	['Splash Potion'] = { 'Splash Water Bottle', 'Awkward Splash Potion', 'Thick Splash Potion', 'Mundane Splash Potion', },	['Lingering Potion'] = { 'Lingering Water Bottle', 'Awkward Lingering Potion', 'Thick Lingering Potion', 'Mundane Lingering Potion', },	['Tipped Arrow'] = { 'Arrow of Splashing', 'Tipped Arrow', 'Tipped Arrow', 'Tipped Arrow', }, } for _, effect in ipairs( effects ) do table.insert( potionItems['Potion'], 'Potion of ' .. effect ) table.insert( potionItems['Splash Potion'], 'Splash Potion of ' .. effect ) table.insert( potionItems['Lingering Potion'], 'Lingering Potion of ' .. effect ) table.insert( potionItems['Tipped Arrow'], 'Arrow of ' .. effect ) end for item, potionAliases in pairs( potionItems ) do aliases['Any ' .. item] = potionAliases aliases['Matching ' .. item] = potionAliases end -- Wood -- local woods = { '',	'Light', 'Dark' } local woodItems = { 'Marshmallow Log', 'Marshmallow Planks', 'Marshmallow Slab', 'Marshmallow Stairs', } -- used if the items use a different name than the alias local woodNames = { ['Marshmallow Log'] = 'Marshmallow Log', ['Marshmallow Planks'] = 'Marshmallow Planks', } for _, item in ipairs( woodItems ) do	local itemName = woodNames[item] or item local woodAliases = {} for _, wood in ipairs( woods ) do table.insert( woodAliases, wood .. ' ' .. itemName ) end aliases['Any ' .. item] = woodAliases aliases['Matching ' .. item] = woodAliases end return aliases