Module:Mat

From Chronicles of Torisia
Jump to navigation Jump to search

Documentation for this module may be created at Module:Mat/doc

local p = {}

local items = {
    ["egg"] = "Egg",
    ["boiled egg"] = "Boiled egg",
    ["cheese"] = "Cheese",
    ["omelette"] = "Omelette",
    ["honey"] = "Honey",
    ["sugar"] = "Sugar",
    ["blueberry cake"] = "Blueberry cake",
    ["carrot"] = "Carrot",
    ["blueberry jam"] = "Blueberry jam",
    ["apple pie"] = "Apple pie",
    ["parsley"] = "Parsley",
    ["butter"] = "Butter",
    ["soup"] = "Soup",
    ["mushroom"] = "Mushroom",
    ["apple"] = "Apple",
    ["french fries"] = "French fries",
    ["potato"] = "Potato",
    ["salad"] = "Salad",
    ["tomato"] = "Tomato",
    ["ketchup"] = "Ketchup",
    ["pizza"] = "Pizza",
    ["blueberries"] = "Blueberries",
    ["bread"] = "Bread",
    ["garlic bread"] = "Garlic bread",
    ["garlic"] = "Garlic",
    ["milk"] = "Milk",
    ["flour"] = "Flour",
    ["wheat"] = "Wheat",
    ["water"] = "Water",

    ["copper ingot"] = "Copper ingot",
    ["coal"] = "Coal",
    ["iron ingot"] = "Iron ingot",
    ["gold ingot"] = "Gold ingot",
    ["cobalt ingot"] = "Cobalt ingot",
    ["skysteel ingot"] = "Skysteel ingot",
    ["emeralite ingot"] = "Emeralite ingot",
    ["mithril ingot"] = "Mithril ingot",
    ["stardust ingot"] = "Stardust ingot",
    ["celestium ingot"] = "Celestium ingot",
    ["coal shard"] = "Coal shard",

    ["emberstone"] = "Emberstone",
    ["infernite"] = "Infernite",
    ["solar shard"] = "Solar shard",
    ["azure opal"] = "Azure opal",
    ["sky shard"] = "Sky shard",
    ["jade tear"] = "Jade tear",
    ["aqua tear"] = "Aqua tear",
    ["moonstone"] = "Moonstone",
    ["astral onyx"] = "Astral onyx",

    ["zuzulite"] = "Zuzulite",
    ["algazite"] = "Algazite",
    ["emirium"] = "Emirium",
    ["lumenite"] = "Lumenite",
    ["divinium"] = "Divinium",

    ["nature crystal"] = "Nature crystal",
    ["ice crystal"] = "Ice crystal",
    ["fire crystal"] = "Fire crystal",
    ["light crystal"] = "Light crystal",
    ["storm crystal"] = "Storm crystal",
    ["shadow crystal"] = "Shadow crystal",

    ["sunflower seeds"] = "Sunflower seeds",
    ["glacial dust"] = "Glacial dust",
    ["thorns"] = "Thorns",
    ["kindle rod"] = "Kindle rod",
    ["void seeds"] = "Void seeds",
    ["nimbus sphere"] = "Nimbus sphere",
    ["terrabloom"] = "Terrabloom",
    ["icicle"] = "Icicle",
    ["glowleaf"] = "Glowleaf",
    ["ember leaf"] = "Ember leaf",
    ["twilight vine"] = "Twilight vine",
    ["thunder rod"] = "Thunder rod",

    ["sunflower petals"] = "Sunflower petals",
    ["glacial orb"] = "Glacial orb",
    ["pricklefiber"] = "Pricklefiber",
    ["kindle ash"] = "Kindle ash",
    ["void dust"] = "Void dust",
    ["cloudroot"] = "Cloudroot",
    ["terravine"] = "Terravine",
    ["frost root"] = "Frost root",
    ["glowcore"] = "Glowcore",
    ["ember seeds"] = "Ember seeds",
    ["twilight root"] = "Twilight root",
    ["thunder seeds"] = "Thunder seeds",
    ["slime glob"] = "Slime glob",
    ["wasp stinger"] = "Wasp stinger",

    ["minor fire essence"] = "Minor fire essence",
    ["standard fire essence"] = "Standard fire essence",
    ["superior fire essence"] = "Superior fire essence",
    ["minor shadow essence"] = "Minor shadow essence",
    ["standard shadow essence"] = "Standard shadow essence",
    ["superior shadow essence"] = "Superior shadow essence",
    ["minor ice essence"] = "Minor ice essence",
    ["standard ice essence"] = "Standard ice essence",
    ["superior ice essence"] = "Superior ice essence",
    ["minor light essence"] = "Minor light essence",
    ["standard light essence"] = "Standard light essence",
    ["superior light essence"] = "Superior light essence",
    ["minor storm essence"] = "Minor storm essence",
    ["standard storm essence"] = "Standard storm essence",
    ["superior storm essence"] = "Superior storm essence",
    ["minor nature essence"] = "Minor nature essence",
    ["standard nature essence"] = "Standard nature essence",
    ["superior nature essence"] = "Superior nature essence",

    ["minor health potion"] = "Minor health potion",
    ["lesser health potion"] = "Lesser health potion",
    ["standard health potion"] = "Standard health potion",
    ["greater health potion"] = "Greater health potion",
    ["superior health potion"] = "Superior health potion",
    ["celestial health potion"] = "Celestial health potion",

    ["minor mana potion"] = "Minor mana potion",
    ["lesser mana potion"] = "Lesser mana potion",
    ["standard mana potion"] = "Standard mana potion",
    ["greater mana potion"] = "Greater mana potion",
    ["superior mana potion"] = "Superior mana potion",
    ["celestial mana potion"] = "Celestial mana potion",

    ["minor rejuvenation potion"] = "Minor rejuvenation potion",
    ["lesser rejuvenation potion"] = "Lesser rejuvenation potion",
    ["standard rejuvenation potion"] = "Standard rejuvenation potion",
    ["greater rejuvenation potion"] = "Greater rejuvenation potion",
    ["superior rejuvenation potion"] = "Superior rejuvenation potion",
    ["celestial rejuvenation potion"] = "Celestial rejuvenation potion",

    ["unlimited minor health potion"] = "Unlimited minor health potion",
    ["unlimited lesser health potion"] = "Unlimited lesser health potion",
    ["unlimited standard health potion"] = "Unlimited standard health potion",
    ["unlimited greater health potion"] = "Unlimited greater health potion",
    ["unlimited superior health potion"] = "Unlimited superior health potion",
    ["unlimited celestial health potion"] = "Unlimited celestial health potion",

    ["unlimited minor mana potion"] = "Unlimited minor mana potion",
    ["unlimited lesser mana potion"] = "Unlimited lesser mana potion",
    ["unlimited standard mana potion"] = "Unlimited standard mana potion",
    ["unlimited greater mana potion"] = "Unlimited greater mana potion",
    ["unlimited superior mana potion"] = "Unlimited superior mana potion",
    ["unlimited celestial mana potion"] = "Unlimited celestial mana potion",
    ["antidote"] = "Antidote",

    ["minor travel potion"] = "Minor travel potion",
    ["standard travel potion"] = "Standard travel potion",
    ["greater travel potion"] = "Greater travel potion",
    ["superior travel potion"] = "Superior travel potion",

    ["minor wealth potion"] = "Minor wealth potion",
    ["standard wealth potion"] = "Standard wealth potion",
    ["greater wealth potion"] = "Greater wealth potion",
    ["superior wealth potion"] = "Superior wealth potion",

    ["minor rarity potion"] = "Minor rarity potion",
    ["standard rarity potion"] = "Standard rarity potion",
    ["greater rarity potion"] = "Greater rarity potion",
    ["superior rarity potion"] = "Superior rarity potion",

    ["minor gathering potion"] = "Minor gathering potion",
    ["standard gathering potion"] = "Standard gathering potion",
    ["greater gathering potion"] = "Greater gathering potion",
    ["superior gathering potion"] = "Superior gathering potion",

    ["minor water movement potion"] = "Minor water movement potion",
    ["standard water movement potion"] = "Standard water movement potion",
    ["greater water movement potion"] = "Greater water movement potion",
    ["superior water movement potion"] = "Superior water movement potion",

    ["minor crafting potion"] = "Minor crafting potion",
    ["standard crafting potion"] = "Standard crafting potion",
    ["greater crafting potion"] = "Greater crafting potion",
    ["superior crafting potion"] = "Superior crafting potion",

    ["minor professions experience potion"] = "Minor professions experience potion",
    ["standard professions experience potion"] = "Standard professions experience potion",
    ["greater professions experience potion"] = "Greater professions experience potion",
    ["superior professions experience potion"] = "Superior professions experience potion",
    ["minor combat experience potion"] = "Minor combat experience potion",
    ["standard combat experience potion"] = "Standard combat experience potion",
    ["greater combat experience potion"] = "Greater combat experience potion",
    ["superior combat experience potion"] = "Superior combat experience potion",

    ["minor damage potion"] = "Minor damage potion",
    ["standard damage potion"] = "Standard damage potion",
    ["superior damage potion"] = "Superior damage potion",

    ["minor critical chance potion"] = "Minor critical chance potion",
    ["standard critical chance potion"] = "Standard critical chance potion",
    ["superior critical chance potion"] = "Superior critical chance potion",

    ["minor critical damage potion"] = "Minor critical damage potion",
    ["standard critical damage potion"] = "Standard critical damage potion",
    ["superior critical damage potion"] = "Superior critical damage potion",

    ["minor cooldown rate potion"] = "Minor cooldown rate potion",
    ["standard cooldown rate potion"] = "Standard cooldown rate potion",
    ["superior cooldown rate potion"] = "Superior cooldown rate potion",

    ["minor haste potion"] = "Minor haste potion",
    ["standard haste potion"] = "Standard haste potion",
    ["superior haste potion"] = "Superior haste potion",

    ["minor mana regeneration potion"] = "Minor mana regeneration potion",
    ["standard mana regeneration potion"] = "Standard mana regeneration potion",
    ["superior mana regeneration potion"] = "Superior mana regeneration potion",

    ["minnow"] = "Minnow",
    ["forest frog"] = "Forest frog",
    ["catfish"] = "Catfish",
    ["moss carp"] = "Moss carp",
    ["marsh pike"] = "Marsh pike",
    ["azure frog"] = "Azure frog",
    ["rainbow catfish"] = "Rainbow catfish",
    ["leafscale"] = "Leafscale",

    ["ice minnow"] = "Ice minnow",
    ["shiverfish"] = "Shiverfish",
    ["glacial carp"] = "Glacial carp",
    ["icy pike"] = "Icy pike",
    ["iciclefin"] = "Iciclefin",
    ["frostbite"] = "Frostbite",

    ["sandy starfish"] = "Sandy starfish",
    ["seashell"] = "Seashell",
    ["glowing jellyfish"] = "Glowing jellyfish",
    ["small sand shark"] = "Small sand shark",
    ["pink starfish"] = "Pink starfish",
    ["seahorse"] = "Seahorse",
    ["void jellyfish"] = "Void jellyfish",
    ["large shark"] = "Large shark",

    ["sand crab"] = "Sand crab",
    ["mud lobster"] = "Mud lobster",
    ["shrimp"] = "Shrimp",
    ["red crab"] = "Red crab",
    ["red lobster"] = "Red lobster",
    ["glowing shrimp"] = "Glowing shrimp",

    ["lava minnow"] = "Lava minnow",
    ["fiery carp"] = "Fiery carp",
    ["fiery pike"] = "Fiery pike",
    ["inferno eel"] = "Inferno eel",

    ["void minnow"] = "Void minnow",
    ["nightmare carp"] = "Nightmare carp",
    ["duskwater pike"] = "Duskwater pike",
    ["phantomscale"] = "Phantomscale",

    ["storm minnow"] = "Storm minnow",
    ["pebblefish"] = "Pebblefish",
    ["stonescale"] = "Stonescale",
    ["storm carp"] = "Storm carp",
    ["thunder pike"] = "Thunder pike",
    ["cloudfish"] = "Cloudfish",
    ["mountainscale"] = "Mountainscale",
    ["thunderscale"] = "Thunderscale",

    ["emerald dart"] = "Emerald dart",
    ["cryofin"] = "Cryofin",
    ["octopus"] = "Octopus",
    ["dune serpent"] = "Dune serpent",
    ["dragonfish"] = "Dragonfish",
    ["ghostfish"] = "Ghostfish",
    ["electric eel"] = "Electric eel",
    ["goldfish"] = "Goldfish",
    ["stealthfish"] = "Stealthfish",

    ["stinky worm bait"] = "Stinky worm bait",
    ["wiggly worm bait"] = "Wiggly worm bait",
    ["juicy worm bait"] = "Juicy worm bait",
    ["rotten fish bait"] = "Rotten fish bait",
    ["fresh fish bait"] = "Fresh fish bait",
    ["tasty fish bait"] = "Tasty fish bait",
    ["rusty magnet"] = "Rusty magnet",
    ["sturdy magnet"] = "Sturdy magnet",
    ["magical magnet"] = "Magical magnet",
    ["weak calming dust"] = "Weak calming dust",
    ["powerful calming dust"] = "Powerful calming dust",
    ["arcane calming dust"] = "Arcane calming dust",
    ["bent hook"] = "Bent hook",
    ["iron hook"] = "Iron hook",
    ["sharpened hook"] = "Sharpened hook",

    ["worn fishing rod"] = "Worn fishing rod",
    ["basic fishing rod"] = "Basic fishing rod",
    ["refined fishing rod"] = "Refined fishing rod",
    ["masterwork fishing rod"] = "Masterwork fishing rod",
    ["enchanted fishing rod"] = "Enchanted fishing rod",
    ["magical fishing rod"] = "Magical fishing rod",
    ["celestial fishing rod"] = "Celestial fishing rod",

    ["copper key"] = "Copper key",
    ["gold key"] = "Gold key",
    ["cobalt key"] = "Cobalt key",
    ["emeralite key"] = "Emeralite key",
    ["mithril key"] = "Mithril key",
    ["celestium key"] = "Celestium key",
    ["copper master key"] = "Copper master key",
    ["gold master key"] = "Gold master key",
    ["cobalt master key"] = "Cobalt master key",
    ["emeralite master key"] = "Emeralite master key",
    ["mithril master key"] = "Mithril master key",
    ["celestium master key"] = "Celestium master key",

    ["copper lockpick"] = "Copper lockpick",
    ["gold lockpick"] = "Gold lockpick",
    ["cobalt lockpick"] = "Cobalt lockpick",
    ["emeralite lockpick"] = "Emeralite lockpick",
    ["mithril lockpick"] = "Mithril lockpick",
    ["celestium lockpick"] = "Celestium lockpick",
    ["lockbane"] = "Lockbane",

    ["soul of mana"] = "Soul of mana",
    ["soul of power"] = "Soul of power",
    ["soul of vitality"] = "Soul of vitality",
    ["soul of luck"] = "Soul of luck",
    ["inventory expander"] = "Inventory expander",
    ["bank expander"] = "Bank expander",
    ["material bank expander"] = "Material bank expander",

    ["minor rift shard"] = "Minor rift shard",
    ["lesser rift shard"] = "Lesser rift shard",
    ["standard rift shard"] = "Standard rift shard",
    ["greater rift shard"] = "Greater rift shard",
    ["superior rift shard"] = "Superior rift shard",
    ["celestial rift shard"] = "Celestial rift shard",

    ["amulet of eternal rain"] = "Amulet of eternal rain",
    ["amulet of eternal clouds"] = "Amulet of eternal clouds",
    ["amulet of eternal sunshine"] = "Amulet of eternal sunshine",
    ["amulet of eternal wind"] = "Amulet of eternal wind",
    ["torch"] = "Torch",
    ["lantern"] = "Lantern",
    ["cat eye"] = "Cat eye",
    ["reinforced torch"] = "Reinforced torch",

    ["hivebender"] = "Hivebender",
    ["grassy staff"] = "Grassy staff",

    ["slime helmet"] = "Slime helmet",
    ["slime chestplate"] = "Slime chestplate",
    ["slime pants"] = "Slime pants",
    ["slime gloves"] = "Slime gloves",
    ["slime shoes"] = "Slime shoes",
    ["slime cloak"] = "Slime cloak",

    ["worn white shirt"] = "Worn white shirt",
    ["worn green shirt"] = "Worn green shirt",
    ["worn sandy shirt"] = "Worn sandy shirt",
    ["worn red shirt"] = "Worn red shirt",
    ["worn blue shirt"] = "Worn blue shirt",
    ["worn orange shirt"] = "Worn orange shirt",

    ["worn white tabard"] = "Worn white tabard",
    ["worn ash tabard"] = "Worn ash tabard",
    ["worn blue tabard"] = "Worn blue tabard",
    ["worn brown tabard"] = "Worn brown tabard",
    ["worn green tabard"] = "Worn green tabard",
    ["worn mint tabard"] = "Worn mint tabard",
    ["worn pink tabard"] = "Worn pink tabard",
    ["worn red tabard"] = "Worn red tabard",

    ["worn white coat"] = "Worn white coat",
    ["worn ash coat"] = "Worn ash coat",
    ["worn blue coat"] = "Worn blue coat",
    ["worn magenta coat"] = "Worn magenta coat",
    ["worn red coat"] = "Worn red coat",
    ["worn sandy coat"] = "Worn sandy coat",
    ["worn teal coat"] = "Worn teal coat",

    ["worn white vest"] = "Worn white vest",
    ["worn green vest"] = "Worn green vest",
    ["worn azure vest"] = "Worn azure vest",
    ["worn blue vest"] = "Worn blue vest",
    ["worn mint vest"] = "Worn mint vest",
    ["worn orange vest"] = "Worn orange vest",
    ["worn red vest"] = "Worn red vest",

    ["worn white robe"] = "Worn white robe",
    ["worn brown robe"] = "Worn brown robe",
    ["worn green robe"] = "Worn green robe",
    ["worn magenta robe"] = "Worn magenta robe",
    ["worn pink robe"] = "Worn pink robe",
    ["worn teal robe"] = "Worn teal robe",
    ["worn blue robe"] = "Worn blue robe",

    ["worn white tunic"] = "Worn white tunic",
    ["worn brown tunic"] = "Worn brown tunic",
    ["worn green tunic"] = "Worn green tunic",
    ["worn pink tunic"] = "Worn pink tunic",
    ["worn purple tunic"] = "Worn purple tunic",
    ["worn red tunic"] = "Worn red tunic",
    ["worn sandy tunic"] = "Worn sandy tunic",
    
    ["worn white mantle"] = "Worn white mantle",
    ["worn green mantle"] = "Worn green mantle",
    ["worn sandy mantle"] = "Worn sandy mantle",
    ["worn red mantle"] = "Worn red mantle",
    ["worn orange mantle"] = "Worn orange mantle",
    ["worn blue mantle"] = "Worn blue mantle",
    
    ["worn white cape"] = "Worn white cape",
    ["worn blue cape"] = "Worn blue cape",
    ["worn brown cape"] = "Worn brown cape",
    ["worn green cape"] = "Worn green cape",
    ["worn mint cape"] = "Worn mint cape",
    ["worn pink cape"] = "Worn pink cape",
    ["worn ash cape"] = "Worn ash cape",
    ["worn red cape"] = "Worn red cape",
    ["worn white cloak"] = "Worn white cloak",
    ["worn ash cloak"] = "Worn ash cloak",
    ["worn blue cloak"] = "Worn blue cloak",
    ["worn sandy cloak"] = "Worn sandy cloak",
    ["worn teal cloak"] = "Worn teal cloak",
    ["worn red cloak"] = "Worn red cloak",
    ["worn magenta cloak"] = "Worn magenta cloak",
    ["worn white bracers"] = "Worn white bracers",
    ["worn green bracers"] = "Worn green bracers",
    ["worn sandy bracers"] = "Worn sandy bracers",
    ["worn red bracers"] = "Worn red bracers",
    ["worn blue bracers"] = "Worn blue bracers",
    ["worn orange bracers"] = "Worn orange bracers",
    ["worn white gloves"] = "Worn white gloves",
    ["worn brown gloves"] = "Worn brown gloves",
    ["worn mint gloves"] = "Worn mint gloves",
    ["worn red gloves"] = "Worn red gloves",
    ["worn pink gloves"] = "Worn pink gloves",
    ["worn blue gloves"] = "Worn blue gloves",
    ["worn green gloves"] = "Worn green gloves",
    ["worn ash gloves"] = "Worn ash gloves",
    ["worn sandy gaunlets"] = "Worn sandy gaunlets",
    ["worn teal gaunlets"] = "Worn teal gaunlets",
    ["worn white gaunlets"] = "Worn white gaunlets",
    ["worn ash gaunlets"] = "Worn ash gaunlets",
    ["worn magenta gaunlets"] = "Worn magenta gaunlets",
    ["worn blue gaunlets"] = "Worn blue gaunlets",
    ["worn red gaunlets"] = "Worn red gaunlets",
    ["crude white circlet"] = "Crude white circlet",
    ["crude green circlet"] = "Crude green circlet",
    ["crude sandy circlet"] = "Crude sandy circlet",
    ["crude red circlet"] = "Crude red circlet",
    ["crude orange circlet"] = "Crude orange circlet",
    ["crude blue circlet"] = "Crude blue circlet",
}

local customItems = {
    ["0"] = {"Gold", "Gold pile mid low.png"},
    
    ["1"] = {"Copper ingot", "Copper ingot.png"},
    ["2"] = {"Iron ingot", "Iron ingot.png"},
    ["3"] = {"Gold ingot", "Gold ingot.png"},
    ["4"] = {"Cobalt ingot", "Cobalt ingot.png"},
    ["5"] = {"Skysteel ingot", "Skysteel ingot.png"},
    ["6"] = {"Emeralite ingot", "Emeralite ingot.png"},
    ["7"] = {"Mithril ingot", "Mithril ingot.png"},
    ["8"] = {"Stardust ingot", "Stardust ingot.png"},
    ["9"] = {"Celestium ingot", "Celestium ingot.png"},
    ["10"] = {"Emberstone", "Emberstone.png"},
    ["11"] = {"Infernite", "Infernite.png"},
    ["12"] = {"Solar shard", "Solar shard.png"},
    ["13"] = {"Azure opal", "Azure opal.png"},
    ["14"] = {"Sky shard", "Sky shard.png"},
    ["15"] = {"Jade tear", "Jade tear.png"},
    ["16"] = {"Aqua tear", "Aqua tear.png"},
    ["17"] = {"Moonstone", "Moonstone.png"},
    ["18"] = {"Astral onyx", "Astral onyx.png"},
    ["19"] = {"Zuzulite", "Zuzulite.png"},
    ["20"] = {"Algazite", "Algazite.png"},
    ["21"] = {"Emirium", "Emirium.png"},
    ["22"] = {"Lumenite", "Lumenite.png"},
    ["23"] = {"Divinium", "Divinium.png"},
    ["24"] = {"Nature crystal", "Nature crystal.png"},
    ["25"] = {"Ice crystal", "Ice crystal.png"},
    ["26"] = {"Fire crystal", "Fire crystal.png"},
    ["27"] = {"Light crystal", "Light crystal.png"},
    ["28"] = {"Storm crystal", "Storm crystal.png"},
    ["29"] = {"Shadow crystal", "Shadow crystal.png"},

    ["1000"] = {"Everbloom dust", "Ethereal dust.png"},
    ["1001"] = {"Sunflower seeds", "Sunflower seeds.png"},
    ["1002"] = {"Glacial dust", "Glacial dust.png"},
    ["1003"] = {"Thorns", "Thorns.png"},
    ["1004"] = {"Kindle rod", "Kindle rod.png"},
    ["1005"] = {"Void seeds", "Void seeds.png"},
    ["1006"] = {"Nimbus sphere", "Nimbus sphere.png"},
    ["1007"] = {"Terrabloom", "Terrabloom.png"},
    ["1008"] = {"Icicle", "Icicle.png"},
    ["1009"] = {"Glowleaf", "Glowleaf.png"},
    ["1010"] = {"Ember leaf", "Ember leaf.png"},
    ["1011"] = {"Twilight vine", "Twilight vine.png"},
    ["1012"] = {"Thunder rod", "Thunder rod.png"},
    ["1013"] = {"Sunflower petals", "Sunflower petals.png"},
    ["1014"] = {"Glacial orb", "Glacial orb.png"},
    ["1015"] = {"Pricklefiber", "Pricklefiber.png"},
    ["1016"] = {"Kindle ash", "Kindle ash.png"},
    ["1017"] = {"Void dust", "Void dust.png"},
    ["1018"] = {"Cloudroot", "Cloudroot.png"},
    ["1019"] = {"Terravine", "Terravine.png"},
    ["1020"] = {"Frost root", "Frost root.png"},
    ["1021"] = {"Glowcore", "Glowcore.png"},
    ["1022"] = {"Ember seeds", "Ember seeds.png"},
    ["1023"] = {"Twilight root", "Twilight root.png"},
    ["1024"] = {"Thunder seeds", "Thunder seeds.png"},

    ["5000"] = {"Slime glob", "Slime glob.png"},
    ["5001"] = {"Wasp stinger", "Wasp stinger.png"},

    -- Abbreviated essences
    ["minfirées"] = {"Minor fire essence", "Minor_fire_essence.png"},
    ["stanfirées"] = {"Standard fire essence", "Standard_fire_essence.png"},
    ["supfirées"] = {"Superior fire essence", "Superior_fire_essence.png"},
    ["minshadowes"] = {"Minor shadow essence", "Minor_shadow_essence.png"},
    ["stanshadowes"] = {"Standard shadow essence", "Standard_shadow_essence.png"},
    ["supshadowes"] = {"Superior shadow essence", "Superior_shadow_essence.png"},
    ["minicees"] = {"Minor ice essence", "Minor_ice_essence.png"},
    ["stanicees"] = {"Standard ice essence", "Standard_ice_essence.png"},
    ["supicees"] = {"Superior ice essence", "Superior_ice_essence.png"},
    ["minlightes"] = {"Minor light essence", "Minor_light_essence.png"},
    ["stanlightes"] = {"Standard light essence", "Standard_light_essence.png"},
    ["suplightes"] = {"Superior light essence", "Superior_light_essence.png"},
    ["minstormes"] = {"Minor storm essence", "Minor_storm_essence.png"},
    ["stanstormes"] = {"Standard storm essence", "Standard_storm_essence.png"},
    ["supstormes"] = {"Superior storm essence", "Superior_storm_essence.png"},
    ["minnaturees"] = {"Minor nature essence", "Minor_nature_essence.png"},
    ["stannaturees"] = {"Standard nature essence", "Standard_nature_essence.png"},
    ["supnaturees"] = {"Superior nature essence", "Superior_nature_essence.png"},

    ["minor health pot"] = {"Minor health potion", "Minor_health_potion.png"},
    ["lesser health pot"] = {"Lesser health potion", "Lesser_health_potion.png"},
    ["standard health pot"] = {"Standard health potion", "Standard_health_potion.png"},
    ["greater health pot"] = {"Greater health potion", "Greater_health_potion.png"},
    ["superior health pot"] = {"Superior health potion", "Superior_health_potion.png"},
    ["celestial health pot"] = {"Celestial health potion", "Celestial_health_potion.png"},
    ["minor mana pot"] = {"Minor mana potion", "Minor_mana_potion.png"},
    ["lesser mana pot"] = {"Lesser mana potion", "Lesser_mana_potion.png"},
    ["standard mana pot"] = {"Standard mana potion", "Standard_mana_potion.png"},
    ["greater mana pot"] = {"Greater mana potion", "Greater_mana_potion.png"},
    ["superior mana pot"] = {"Superior mana potion", "Superior_mana_potion.png"},
    ["celestial mana pot"] = {"Celestial mana potion", "Celestial_mana_potion.png"},
    ["minor rejuvenation pot"] = {"Minor rejuvenation potion", "Minor_rejuvenation_potion.png"},
    ["lesser rejuvenation pot"] = {"Lesser rejuvenation potion", "Lesser_rejuvenation_potion.png"},
    ["standard rejuvenation pot"] = {"Standard rejuvenation potion", "Standard_rejuvenation_potion.png"},
    ["greater rejuvenation pot"] = {"Greater rejuvenation potion", "Greater_rejuvenation_potion.png"},
    ["superior rejuvenation pot"] = {"Superior rejuvenation potion", "Superior_rejuvenation_potion.png"},
    ["celestial rejuvenation pot"] = {"Celestial rejuvenation potion", "Celestial_rejuvenation_potion.png"},
    ["unlimited minor health pot"] = {"Unlimited minor health potion", "Unlimited_minor_health_potion.png"},
    ["unlimited lesser health pot"] = {"Unlimited lesser health potion", "Unlimited_lesser_health_potion.png"},
    ["unlimited standard health pot"] = {"Unlimited standard health potion", "Unlimited_standard_health_potion.png"},
    ["unlimited greater health pot"] = {"Unlimited greater health potion", "Unlimited_greater_health_potion.png"},
    ["unlimited superior health pot"] = {"Unlimited superior health potion", "Unlimited_superior_health_potion.png"},
    ["unlimited celestial health pot"] = {"Unlimited celestial health potion", "Unlimited_celestial_health_potion.png"},
    ["unlimited minor mana pot"] = {"Unlimited minor mana potion", "Unlimited_minor_mana_potion.png"},
    ["unlimited lesser mana pot"] = {"Unlimited lesser mana potion", "Unlimited_lesser_mana_potion.png"},
    ["unlimited standard mana pot"] = {"Unlimited standard mana potion", "Unlimited_standard_mana_potion.png"},
    ["unlimited greater mana pot"] = {"Unlimited greater mana potion", "Unlimited_greater_mana_potion.png"},
    ["unlimited superior mana pot"] = {"Unlimited superior mana potion", "Unlimited_superior_mana_potion.png"},
    ["unlimited celestial mana pot"] = {"Unlimited celestial mana potion", "Unlimited_celestial_mana_potion.png"},
    ["minor travel pot"] = {"Minor travel potion", "Minor_travel_potion.png"},
    ["standard travel pot"] = {"Standard travel potion", "Standard_travel_potion.png"},
    ["greater travel pot"] = {"Greater travel potion", "Greater_travel_potion.png"},
    ["superior travel pot"] = {"Superior travel potion", "Superior_travel_potion.png"},
    ["minor wealth pot"] = {"Minor wealth potion", "Minor_wealth_potion.png"},
    ["standard wealth pot"] = {"Standard wealth potion", "Standard_wealth_potion.png"},
    ["greater wealth pot"] = {"Greater wealth potion", "Greater_wealth_potion.png"},
    ["superior wealth pot"] = {"Superior wealth potion", "Superior_wealth_potion.png"},
    ["minor rarity pot"] = {"Minor rarity potion", "Minor_rarity_potion.png"},
    ["standard rarity pot"] = {"Standard rarity potion", "Standard_rarity_potion.png"},
    ["greater rarity pot"] = {"Greater rarity potion", "Greater_rarity_potion.png"},
    ["superior rarity pot"] = {"Superior rarity potion", "Superior_rarity_potion.png"},
    ["minor gathering pot"] = {"Minor gathering potion", "Minor_gathering_potion.png"},
    ["standard gathering pot"] = {"Standard gathering potion", "Standard_gathering_potion.png"},
    ["greater gathering pot"] = {"Greater gathering potion", "Greater_gathering_potion.png"},
    ["superior gathering pot"] = {"Superior gathering potion", "Superior_gathering_potion.png"},
    ["minor water movement pot"] = {"Minor water movement potion", "Minor_water_movement_potion.png"},
    ["standard water movement pot"] = {"Standard water movement potion", "Standard_water_movement_potion.png"},
    ["greater water movement pot"] = {"Greater water movement potion", "Greater_water_movement_potion.png"},
    ["superior water movement pot"] = {"Superior water movement potion", "Superior_water_movement_potion.png"},
    ["minor crafting pot"] = {"Minor crafting potion", "Minor_provision_potion.png"},
    ["standard crafting pot"] = {"Standard crafting potion", "Standard_provision_potion.png"},
    ["greater crafting pot"] = {"Greater crafting potion", "Greater_provision_potion.png"},
    ["superior crafting pot"] = {"Superior crafting potion", "Superior_provision_potion.png"},
    ["minor damage pot"] = {"Minor damage potion", "Minor_damage_potion.png"},
    ["standard damage pot"] = {"Standard damage potion", "Standard_damage_potion.png"},
    ["superior damage pot"] = {"Superior damage potion", "Superior_damage_potion.png"},
    ["minor critical chance pot"] = {"Minor critical chance potion", "Minor_critical_rate_potion.png"},
    ["standard critical chance pot"] = {"Standard critical chance potion", "Standard_critical_rate_potion.png"},
    ["superior critical chance pot"] = {"Superior critical chance potion", "Superior_critical_rate_potion.png"},
    ["minor critical damage pot"] = {"Minor critical damage potion", "Minor_critical_damage_potion.png"},
    ["standard critical damage pot"] = {"Standard critical damage potion", "Standard_critical_damage_potion.png"},
    ["superior critical damage pot"] = {"Superior critical damage potion", "Superior_critical_damage_potion.png"},
    ["minor cooldown rate pot"] = {"Minor cooldown rate potion", "Minor_cooldown_rate_potion.png"},
    ["standard cooldown rate pot"] = {"Standard cooldown rate potion", "Standard_cooldown_rate_potion.png"},
    ["superior cooldown rate pot"] = {"Superior cooldown rate potion", "Superior_cooldown_rate_potion.png"},
    ["minor haste pot"] = {"Minor haste potion", "Minor_haste_potion.png"},
    ["standard haste pot"] = {"Standard haste potion", "Standard_haste_potion.png"},
    ["superior haste pot"] = {"Superior haste potion", "Superior_haste_potion.png"},
    ["minor mana regeneration pot"] = {"Minor mana regeneration potion", "Minor_mana_regeneration_potion.png"},
    ["standard mana regeneration pot"] = {"Standard mana regeneration potion", "Standard_mana_regeneration_potion.png"},
    ["superior mana regeneration pot"] = {"Superior mana regeneration potion", "Superior_mana_regeneration_potion.png"},

    -- Recipes - Potion
    ["recipe weak health potions"] = {"Recipe - Weak health potions", "Recipe potion.png"},
    ["recipe strong health potions"] = {"Recipe - Strong health potions", "Recipe potion.png"},
    ["recipe weak mana potions"] = {"Recipe - Weak mana potions", "Recipe potion.png"},
    ["recipe strong mana potions"] = {"Recipe - Strong mana potions", "Recipe potion.png"},
    ["recipe weak rejuvenation potions"] = {"Recipe - Weak rejuvenation potions", "Recipe potion.png"},
    ["recipe strong rejuvenation potions"] = {"Recipe - Strong rejuvenation potions", "Recipe potion.png"},
    ["recipe unlimited minor health potion"] = {"Recipe - Unlimited minor health potion", "Recipe potion.png"},
    ["recipe unlimited lesser health potion"] = {"Recipe - Unlimited lesser health potion", "Recipe potion.png"},
    ["recipe unlimited standard health potion"] = {"Recipe - Unlimited standard health potion", "Recipe potion.png"},
    ["recipe unlimited greater health potion"] = {"Recipe - Unlimited greater health potion", "Recipe potion.png"},
    ["recipe unlimited superior health potion"] = {"Recipe - Unlimited superior health potion", "Recipe potion.png"},
    ["recipe unlimited celestial health potion"] = {"Recipe - Unlimited celestial health potion", "Recipe potion.png"},
    ["recipe unlimited minor mana potion"] = {"Recipe - Unlimited minor mana potion", "Recipe potion.png"},
    ["recipe unlimited lesser mana potion"] = {"Recipe - Unlimited lesser mana potion", "Recipe potion.png"},
    ["recipe unlimited standard mana potion"] = {"Recipe - Unlimited standard mana potion", "Recipe potion.png"},
    ["recipe unlimited greater mana potion"] = {"Recipe - Unlimited greater mana potion", "Recipe potion.png"},
    ["recipe unlimited superior mana potion"] = {"Recipe - Unlimited superior mana potion", "Recipe potion.png"},
    ["recipe unlimited celestial mana potion"] = {"Recipe - Unlimited celestial mana potion", "Recipe potion.png"},
    ["recipe travel potions"] = {"Recipe - Travel potions", "Recipe potion.png"},
    ["recipe wealth potions"] = {"Recipe - Wealth potions", "Recipe potion.png"},
    ["recipe rarity potions"] = {"Recipe - Rarity potions", "Recipe potion.png"},
    ["recipe gathering potions"] = {"Recipe - Gathering potions", "Recipe potion.png"},
    ["recipe water movement potions"] = {"Recipe - Water movement potions", "Recipe potion.png"},
    ["recipe crafting potions"] = {"Recipe - Crafting potions", "Recipe potion.png"},
    ["recipe professions experience potions"] = {"Recipe - Professions experience potions", "Recipe potion.png"},
    ["recipe combat experience potions"] = {"Recipe - Combat experience potions", "Recipe potion.png"},
    ["recipe damage potions"] = {"Recipe - Damage potions", "Recipe potion.png"},
    ["recipe critical chance potions"] = {"Recipe - Critical chance potions", "Recipe potion.png"},
    ["recipe critical damage potions"] = {"Recipe - Critical damage potions", "Recipe potion.png"},
    ["recipe cooldown rate potions"] = {"Recipe - Cooldown rate potions", "Recipe potion.png"},
    ["recipe haste potions"] = {"Recipe - Haste potions", "Recipe potion.png"},
    ["recipe mana regeneration potions"] = {"Recipe - Mana regeneration potions", "Recipe potion.png"},
    ["recipe antidote"] = {"Recipe - Antidote", "Recipe potion.png"},

    -- Recipes - Food
    ["recipe boiled egg"] = {"Recipe - Boiled egg", "Recipe food.png"},
    ["recipe sugar"] = {"Recipe - Sugar", "Recipe food.png"},
    ["recipe blueberry jam"] = {"Recipe - Blueberry jam", "Recipe food.png"},
    ["recipe butter"] = {"Recipe - Butter", "Recipe food.png"},
    ["recipe cheese"] = {"Recipe - Cheese", "Recipe food.png"},
    ["recipe ketchup"] = {"Recipe - Ketchup", "Recipe food.png"},
    ["recipe bread"] = {"Recipe - Bread", "Recipe food.png"},
    ["recipe omelette"] = {"Recipe - Omelette", "Recipe food.png"},
    ["recipe blueberry cake"] = {"Recipe - Blueberry cake", "Recipe food.png"},
    ["recipe apple pie"] = {"Recipe - Apple pie", "Recipe food.png"},
    ["recipe soup"] = {"Recipe - Soup", "Recipe food.png"},
    ["recipe french fries"] = {"Recipe - French fries", "Recipe food.png"},
    ["recipe salad"] = {"Recipe - Salad", "Recipe food.png"},
    ["recipe pizza"] = {"Recipe - Pizza", "Recipe food.png"},
    ["recipe garlic bread"] = {"Recipe - Garlic bread", "Recipe food.png"},

    -- Recipes - Lockpick
    ["recipe copper lockpick"] = {"Recipe - Copper lockpick", "Recipe lockpick.png"},
    ["recipe gold lockpick"] = {"Recipe - Gold lockpick", "Recipe lockpick.png"},
    ["recipe cobalt lockpick"] = {"Recipe - Cobalt lockpick", "Recipe lockpick.png"},
    ["recipe emeralite lockpick"] = {"Recipe - Emeralite lockpick", "Recipe lockpick.png"},
    ["recipe mithril lockpick"] = {"Recipe - Mithril lockpick", "Recipe lockpick.png"},
    ["recipe celestium lockpick"] = {"Recipe - Celestium lockpick", "Recipe lockpick.png"},

    -- Recipes - Slime Gear
    ["recipe slime helmet"] = {"Recipe - Slime helmet", "Recipe helm.png"},
    ["recipe slime chestplate"] = {"Recipe - Slime chestplate", "Recipe gear.png"},
    ["recipe slime pants"] = {"Recipe - Slime pants", "Recipe legs.png"},
    ["recipe slime gloves"] = {"Recipe - Slime gloves", "Recipe gloves.png"},
    ["recipe slime shoes"] = {"Recipe - Slime shoes", "Recipe shoes.png"},
    ["recipe slime cloak"] = {"Recipe - Slime cloak", "Recipe cloak.png"},
    
    ["sandy starfish"] = {"Sandy starfish", "Sand starfish.png"},
    ["powerful calming dust"] = {"Powerful calming dust", "Poweful calming dust.png"},
    ["eternity"] = {"Eternity", "EternityNew.png"},
}

function p.main(frame)
    local name = mw.text.trim(frame.args[1] or "")
    local lookup = name:lower()
    local custom = customItems[lookup]
    if custom then
        return string.format(
            '[[File:%s|25px|link=%s]] [[%s]]',
            custom[2], custom[1], custom[1]
        )
    end
    local display = items[lookup]
    if display then
        return string.format(
            '[[File:%s.png|25px|link=%s]] [[%s]]',
            lookup, display, display
        )
    end
    
    return '<span style="color:red">Unknown item: ' .. name .. '</span>'
end

return p