Module:Inventory slot/Aliases

local aliases = { -- Common Fuel For Furnace-- ['Any fuel'] = { 'Coal', 'Charcoal', { title = 'Wood', name = 'Oak Wood' }, { title = 'Wood Planks', name = 'Oak Wood Planks' }, 'Block of Coal' }, ['Any Item'] = { title = '&pAny Item', name = 'Any Item', text = '&7Found in the &pCandyLands' }, -- All Tools -- ['Marshmallow Sword'] = { title = 'Marshmallow Sword', name = 'Marshmallow Sword', text = '/&9+4 Attack Damage' }, ['Honeycomb Sword'] = { title = 'Honeycomb Sword', name = 'Honeycomb Sword', text = '/&9+6 Attack Damage' }, ['Licorice Sword'] = { title = 'Licorice Sword', name = 'Licorice Sword', text = '/&9+5 Attack Damage' }, ['Licorice Short Sword'] = { title = 'Licorice Short Sword', name = 'Licorice Short Sword', text = '/&9+5 Attack Damage/+1 Reach' }, ['PEZ Sword'] = { title = 'PEZ Sword', name = 'PEZ Sword', text = '/&9+7.4 Attack Damage' }, ['Marshmallow Pickaxe'] = { title = 'Marshmallow Pickaxe', name = 'Marshmallow Pickaxe', text = '/&9+2 Attack Damage' }, ['Honeycomb Pickaxe'] = { title = 'Honeycomb Pickaxe', name = 'Honeycomb Pickaxe', text = '/&9+4 Attack Damage' }, ['Licorice Pickaxe'] = { title = 'Licorice Pickaxe', name = 'Licorice Pickaxe', text = '/&9+3 Attack Damage' }, ['PEZ Pickaxe'] = { title = 'PEZ Pickaxe', name = 'PEZ Pickaxe', text = '/&9+5.4 Attack Damage' }, ['Marshmallow Axe'] = { title = 'Marshmallow Axe', name = 'Marshmallow Axe', text = '/&9+3 Attack Damage' }, ['Honeycomb Axe'] = { title = 'Honeycomb Axe', name = 'Honeycomb Axe', text = '/&9+5 Attack Damage' }, ['Licorice Axe'] = { title = 'Licorice Axe', name = 'Licorice Axe', text = '/&9+4 Attack Damage' }, ['PEZ Axe'] = { title = 'PEZ Axe', name = 'PEZ Axe', text = '/&9+6.4 Attack Damage' }, -- Miscellaneous -- ['Sugar Pill'] = { title = 'Sugar Pill', name = 'Sugar Pill', text = '/&6Effects:' }, } -- 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' }, }

-- 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

-- Ice Creams -- local iceCreams = { 'Blueberry', 'Strawberry', 'Mint' } local iceCreamItems = { 'Ice Cream Blocks', 'Ice Cream Slab', 'Ice Cream Stairs', }

-- used if the items use a different name than the alias local iceCreamNames = { ['Ice Cream Blocks'] = 'Ice Cream Block', ['Ice Cream Stairs'] = 'Ice Cream Stairs', } for _, item in ipairs( iceCreamItems ) do	local itemName = iceCreamNames[item] or item local iceCreamAliases = {} for _, iceCream in ipairs( iceCreams ) do table.insert( iceCreamAliases, iceCream .. ' ' .. itemName ) end aliases['Any ' .. item] = iceCreamAliases aliases['Matching ' .. item] = iceCreamAliases end

return aliases