Module:Inventory slot/Templates

local table = require('Module:Table')

local MCColors = require('Module:Color/Data').MCColors

local pet = require('Module:Pet')

return table.merge({	-- It is suggested to prepend template tooltips in Module:Inventory slot/Tooltips with 'T:'	-- There, $s and $o can be used for insersion of (processed) new item id and (original) new item string respectively	-- $0-9 can be used for custom variable placeholders (Uses zero indexing)	-- Placeholders can be used in any fields (id/name/title/text in Tooltips or in any overrides below)	-- Usage: ["Existing Tooltip Name as a Template"] = {  ..., }	-- Adding an item using a string will be equivalent as this in tooltips:		-- [] = {		-- name = 		-- title = 		-- text = 		-- }		-- * optionally, you may use $s on any position of title/text to insert the Tooltip String.	-- You can override any of the above with a table. For example, to replace the title:		-- { , title =  }	-- You can use that table to insert variables with 'vars'. For example, to indicate values for $0 and $1: -- { , vars = { 'Green', '&a' } } or		-- { , 'Green', '&a' } **preferred -- Available : -- id: Override item id/key on ALL table values (refered as $o, the original string). -- Note: the new id/key after replacement will be refered as $s, the new item id	-- General toooltip templates ['T:Jumbo Backpack'] = table.merge({ id='Jumbo Backpack ($o)' }, MCColors), ['T:Greater Backpack'] = table.merge({ id='Greater Backpack ($o)' }, MCColors), ['T:Large Backpack'] = table.merge({ id='Large Backpack ($o)' }, MCColors), ['T:Medium Backpack'] = table.merge({ id='Medium Backpack ($o)' }, MCColors), ['T:Small Backpack'] = table.merge({ id='Small Backpack ($o)' }, MCColors), ['T:Crab Hat of Celebration'] = { {'Aqua', 'b'}, {'Black', '0'}, {'Green', '2'}, {'Lime', 'a'}, {'Orange', '6'}, {'Pink', 'd'}, {'Purple', '5'}, {'Red', 'c'}, {'Yellow', 'e'}, id='$o Crab Hat of Celebration' }, ['T:Repelling Candle'] = { {'Red'}, {'Orange'}, {'Yellow'}, {'Green'}, {'Blue'}, {'Purple'}, {'Black'}, {'Pink'}, {'Lilac'}, {'Aqua'}, {'Cyan'}, {'Brown'}, {'Gray'}, {'White'}, id='$o Repelling Candle' }, ['T:Pet'] = pet.getPetsTemplate, ['T:Pet Skin'] = pet.getSkinsTemplate, ['T:Mystery Pet'] = pet.getMysteryTemplate, -- MISC items that have same tooltips -- ['existing item'] = { 'new item', ... }	-- Rarity-only tooltips. PLEASE ENTER IN ALPHABETICAL ORDER. ['T:Very Special'] = {}, ['T:Special'] = {'Rock the Fish', }, ['T:Supreme'] = {}, ['T:Mythic'] = {}, ['T:Legendary'] = {'Digested Mosquito', 'Dragon Egg', 'Hilt of True Ice', {'Nether Star', name = 'Enchanted Nether Star'}, 'Perfect Boots - Tier IX', 'Perfect Boots - Tier VIII', 'Perfect Boots - Tier X', 'Perfect Boots - Tier XI', 'Perfect Boots - Tier XII', 'Perfect Chestplate - Tier IX', 'Perfect Chestplate - Tier VIII', 'Perfect Chestplate - Tier X', 'Perfect Chestplate - Tier XII', 'Perfect Helmet - Tier IX', 'Perfect Helmet - Tier VIII', 'Perfect Helmet - Tier X', 'Perfect Leggings - Tier IX', 'Perfect Leggings - Tier VIII', 'Perfect Leggings - Tier X', 'Perfect Leggings - Tier XI', 'Perfect Leggings - Tier XII', 'Refined Titanium', 'Scythe Blade', 'Tesselated Ender Pearl', }, ['T:Epic'] = {'Braided Griffin Feather', 'Crystal Fragment', 'Diamond Horse Armor', 'Enchanted Titanium', 'Fly Swatter', 'Gold Horse Armor', 'Golden Powder', 'Obsidian Chestplate', 'Overflux Capacitor', 'Perfect Boots - Tier IV', 'Perfect Boots - Tier V', 'Perfect Boots - Tier VI', 'Perfect Boots - Tier VII', 'Perfect Chestplate - Tier IV', 'Perfect Chestplate - Tier V', 'Perfect Chestplate - Tier VI', 'Perfect Chestplate - Tier VII', 'Perfect Helmet - Tier IV', 'Perfect Helmet - Tier V', 'Perfect Helmet - Tier VI', 'Perfect Helmet - Tier VII', 'Perfect Leggings - Tier IV', 'Perfect Leggings - Tier V', 'Perfect Leggings - Tier VI', 'Perfect Leggings - Tier VII', 'Refined Mithril', {'Silex (original)', title = '&5Silex'}, 'Tarantula Chestplate', 'Tarantula Helmet', 'Tarantula Leggings', }, ['T:Rare'] = {'Absolute Ender Pearl', 'Bejeweled Handle', 'Creeper Skull', 'Drill Engine', 'Enchanted Block of Coal', 'Enchanted Bone Block', 'Enchanted Cooked Fish', 'Enchanted Cooked Salmon', 'Enchanted Diamond Block', 'Enchanted Emerald Block', 'Enchanted Firework Rocket', 'Enchanted Grilled Pork', 'Enchanted Iron Block', 'Enchanted Lapis Block', 'Enchanted Melon Block', 'Enchanted Mithril', 'Enchanted Packed Ice', 'Enchanted Quartz Block', 'Enchanted Slime Block', 'Enchanted Wet Sponge', 'Fuel Tank', 'Golden Plate', 'Grizzly Bait', 'Hunk of Blue Ice', 'Iron Horse Armor', 'Mithril Plate', 'Perfect Boots - Tier I', 'Perfect Boots - Tier II', 'Perfect Boots - Tier III', 'Perfect Chestplate - Tier I', 'Perfect Chestplate - Tier II', 'Perfect Chestplate - Tier III', 'Perfect Helmet - Tier I', 'Perfect Helmet - Tier II', 'Perfect Helmet - Tier III', 'Perfect Leggings - Tier I', 'Perfect Leggings - Tier II', 'Perfect Leggings - Tier III', 'Polished Pumpkin', 'Refined Mineral', 'Revenant Viscera', 'Skeleton Skull', 'Spider Catalyst', 'Super Magical Mushroom Soup', 'Tarantula Silk', 'Undead Catalyst', 'Weak Wolf Catalyst', 'Wither Skeleton Skull', }, ['T:Uncommon'] = {'Diamond Ore', 'Emerald Ore', 'Enchanted Acacia Wood', 'Enchanted Baked Potato', 'Enchanted Birch Wood', 'Enchanted Carrot', 'Enchanted Clay', 'Enchanted Clownfish', 'Enchanted Cobblestone', 'Enchanted Dandelion', 'Enchanted Dark Oak Wood', 'Enchanted Diamond', 'Enchanted Emerald', 'Enchanted Ender Pearl', 'Enchanted Eye of Ender', 'Enchanted Feather', 'Enchanted Flint', 'Enchanted Golden Apple', 'Enchanted Golden Carrot', 'Enchanted Hay Bale', 'Enchanted Ice', 'Enchanted Iron', {'Enchanted Iron Ingot', title = '&aEnchanted Iron'}, 'Enchanted Jungle Wood', 'Enchanted Lapis Lazuli', 'Enchanted Leather', 'Enchanted Lily Pad', 'Enchanted Magma Cream', 'Enchanted Nether Wart', 'Enchanted Oak Wood', 'Enchanted Obsidian', 'Enchanted Paper', 'Enchanted Poisonous Potato', 'Enchanted Poppy', 'Enchanted Pork', 'Enchanted Potato', 'Enchanted Prismarine Crystals', 'Enchanted Prismarine Shard', 'Enchanted Pumpkin', 'Enchanted Quartz', 'Enchanted Raw Beef', 'Enchanted Raw Chicken', 'Enchanted Raw Fish', 'Enchanted Raw Rabbit', 'Enchanted Raw Salmon', 'Enchanted Sand', 'Enchanted Slimeball', 'Enchanted Snow Block', 'Enchanted Sponge', 'Enchanted Spruce Wood', 'Enchanted String', 'Enchanted Wool', 'Hunk of Ice', 'Hyper Furnace', 'Jacob\'s Ticket', 'Lapis Lazuli Ore', {'Music Disc 11', title = '&aMusic Disc - 11'}, {'Music Disc 13', title = '&aMusic Disc - 13'}, {'Music Disc Blocks', title = '&aMusic Disc - Blocks'}, {'Music Disc Cat', title = '&aMusic Disc - Cat'}, {'Music Disc Chirp', title = '&aMusic Disc - Chirp'}, {'Music Disc Far', title = '&aMusic Disc - Far'}, {'Music Disc Mall', title = '&aMusic Disc - Mall'}, {'Music Disc Mellohi', title = '&aMusic Disc - Mellohi'}, {'Music Disc Stal', title = '&aMusic Disc - Stal'}, {'Music Disc Strad', title = '&aMusic Disc - Strad'}, {'Music Disc Wait', title = '&aMusic Disc - Wait'}, {'Music Disc Ward', title = '&aMusic Disc - Ward'}, 'Name Tag', 'Nether Quartz Ore', 'Prismarine Bricks', 'Rabbit Hat', 'Redstone Ore', 'Revenant Flesh', 'Tarantula Web', 'Web', 'Wolf Tooth', }, ['T:Common'] = {'Acacia Door', 'Acacia Fence', 'Acacia Fence Gate', 'Acacia Leaves', 'Acacia Sapling', 'Acacia Wood', 'Acacia Wood Plank', 'Acacia Wood Planks', 'Acacia Wood Slab', 'Acacia Wood Stairs', 'Allium', 'Andesite', 'Anvil', 'Apple', 'Armor Stand', 'Arrow', 'Awkward Potion', 'Azure Bluet', 'Baked Potato', 'Barrier', 'Beach Ball', 'Bed', 'Birch Door', 'Birch Fence', 'Birch Fence Gate', 'Birch Leaves', 'Birch Sapling', 'Birch Wood', 'Birch Wood Plank', 'Birch Wood Planks', 'Birch Wood Slab', 'Birch Wood Stairs', 'Black Carpet', 'Black Hardened Clay', 'Black Stained Glass', 'Black Stained Glass Pane', 'Black Wool', 'Blaze Rod', 'Block of Diamond', 'Block of Emerald', 'Block of Gold', 'Block of Iron', 'Block of Quartz', 'Block of Redstone', 'Blue Carpet', 'Blue Hardened Clay', 'Blue Orchid', 'Blue Stained Glass', 'Blue Stained Glass Pane', 'Blue Wool', 'Boat', 'Bone', 'Bone Meal', 'Book', 'Book and Quill', 'Bowl', 'Bread', 'Brewing Stand', 'Brick', 'Brick Slab', 'Brick Stairs', 'Bricks', 'Brown Carpet', 'Brown Hardened Clay', 'Brown Mushroom', 'Brown Mushroom Block', 'Brown Stained Glass', 'Brown Stained Glass Pane', 'Brown Wool', 'Bucket', 'Cactus Green', 'Cake', 'Carpet', 'Carrot', 'Carrot on a Stick', 'Carrots', 'Charcoal', 'Chest', 'Chiseled Quartz Block', 'Chiseled Sandstone', 'Chiseled Stone Bricks', 'Clay', {'Clay (block)', title = '&fClay'}, {'Clay Block', title = '&fClay'}, {'Melon (block)', title = '&fMelon'}, 'Clock', 'Clownfish', 'Coal Ore', 'Coarse Dirt', 'Cobblestone', 'Cobblestone Slab', 'Cobblestone Stairs', 'Cobblestone Wall', 'Comparator', 'Compass', 'Cooked Beef', 'Cooked Chicken', 'Cooked Fish', 'Cooked Porkchop', 'Cooked Salmon', 'Cookie', 'Cracked Stone Bricks', 'Crafting Table', 'Cyan Dye', 'Cyan Hardened Clay', 'Cyan Stained Glass Pane', 'Cyan Wool', 'Dandelion', 'Dandelion Yellow', 'Dark Oak Door', 'Dark Oak Fence', 'Dark Oak Fence Gate', 'Dark Oak Leaves', 'Dark Oak Sapling', 'Dark Oak Wood', 'Dark Oak Wood Plank', 'Dark Oak Wood Planks', 'Dark Oak Wood Slab', 'Dark Oak Wood Stairs', 'Dark Prismarine', 'Daylight Detector', 'Dead Bush', 'Diamond', 'Diorite', 'Dirt', 'Dispenser', 'Double Tallgrass', 'Dropper', 'Egg', 'Emerald', 'Empty Map', 'Enchanted Bone', 'Enchanted Brown Mushroom', 'Enchanted Brown Mushroom Block', 'Enchanted End Stone', 'Enchanted Red Mushroom', 'Enchanted Red Mushroom Block', 'Enchanted Rotten Flesh', 'Enchanted Seeds', 'Enchantment Table', 'End Portal Frame', 'End Stone', 'Ender Chest', 'Ender Pearl', 'Eye of Ender', 'Feather', 'Fermented Spider Eye', 'Fern', 'Fire Charge', 'Firework Rocket', 'Firework Star', 'Fish Hat', 'Flint', 'Flint and Steel', 'Flower Pot', 'Frosty Snowball', 'Furnace', 'Ghast Head', 'Glass', 'Glass Bottle', 'Glass Pane', 'Glowstone', 'Glowstone Dust', 'Gold Ingot', 'Gold Nugget', 'Gold Ore', 'Golden Apple', 'Golden Boots', 'Golden Chestplate', 'Golden Helmet', 'Golden Hoe', 'Golden Leggings', 'Granite', 'Grass', 'Gravel', 'Gray Carpet', 'Gray Dye', 'Gray Hardened Clay', 'Gray Stained Glass', 'Gray Stained Glass Pane', 'Gray Wool', 'Green Carpet', 'Green Hardened Clay', 'Green Stained Glass', 'Green Stained Glass Pane', 'Green Wool', 'Gunpowder', 'Hardened Clay', 'Hay Bale', 'Heavy Weighted Pressure Plate', 'Hopper', 'Ice', 'Ink Sack', 'Iron Bars', 'Iron Boots', 'Iron Chestplate', 'Iron Door', 'Iron Helmet', 'Iron Hoe', 'Iron Ingot', 'Iron Leggings', 'Iron Ore', 'Iron Trapdoor', 'Item Frame', 'Jack o\' Lantern', 'Jukebox', 'Jungle Door', 'Jungle Fence', 'Jungle Fence Gate', 'Jungle Leaves', 'Jungle Sapling', 'Jungle Wood', 'Jungle Wood Plank', 'Jungle Wood Planks', 'Jungle Wood Slab', 'Jungle Wood Stairs', 'Ladder', 'Lapis Lazuli', 'Lapis Lazuli Block', 'Lava Bucket', 'Lead', 'Leather', 'Leather Boots', 'Leather Chestplate', 'Leather Helmet', 'Leather Leggings', 'Lever', 'Light Blue Carpet', 'Light Blue Dye', 'Light Blue Hardened Clay', 'Light Blue Stained Glass', 'Light Blue Stained Glass Pane', 'Light Blue Wool', 'Light Gray Carpet', 'Light Gray Dye', 'Light Gray Hardened Clay', 'Light Gray Stained Glass', 'Light Gray Stained Glass Pane', 'Light Gray Wool', 'Light Weighted Pressure Plate', 'Lilac', 'Lily Pad', 'Lime Carpet', 'Lime Dye', 'Lime Hardened Clay', 'Lime Stained Glass', 'Lime Stained Glass Pane', 'Lime Wool', 'Long Grass', 'Magenta Carpet', 'Magenta Dye', 'Magenta Hardened Clay', 'Magenta Stained Glass', 'Magenta Stained Glass Pane', 'Magenta Wool', 'Map', 'Melon', 'Melon Seeds', 'Melon Slice', 'Milk Bucket', 'Minecart', 'Minecart with Chest', 'Minecart with Furnace', 'Minecart with Hopper', 'Minecart with TNT', 'Moss Stone', 'Mossy Cobblestone Wall', 'Mossy Stone Bricks', 'Mushroom Soup', 'Mutton', 'Mycelium', 'Nether Brick', 'Nether Brick Fence', 'Nether Brick Slab', 'Nether Brick Stairs', 'Nether Bricks', 'Nether Bricks Stairs', 'Nether Quartz', 'Netherrack', 'Noteblock', 'Oak Door', 'Oak Fence', 'Oak Fence Gate', 'Oak Leaves', 'Oak Sapling', 'Oak Wood', 'Oak Wood Plank', 'Oak Wood Planks', 'Oak Wood Slab', 'Oak Wood Stairs', 'Obsidian', 'Orange Carpet', 'Orange Dye', 'Orange Hardened Clay', 'Orange Stained Glass', 'Orange Stained Glass Pane', 'Orange Tulip', 'Orange Wool', 'Oxeye Daisy', 'Packed Ice', 'Painting', 'Paper', 'Peony', 'Pillar Quartz Block', 'Pink Carpet', 'Pink Dye', 'Pink Hardened Clay', 'Pink Stained Glass', 'Pink Stained Glass Pane', 'Pink Tulip', 'Pink Wool', 'Piston', 'Podzol', 'Polished Andesite', 'Polished Diorite', 'Polished Granite', 'Polished Pebble', 'Poppy', 'Potato', 'Powered Rail', 'Prismarine', 'Prismarine Crystals', 'Prismarine Shard', 'Pufferfish', 'Pufferfish Hat', 'Pumpkin', 'Pumpkin Pie', 'Pumpkin Seeds', 'Purple Carpet', 'Purple Dye', 'Purple Hardened Clay', 'Purple Stained Glass', 'Purple Stained Glass Pane', 'Purple Wool', {'Quartz', title = '&fNether Quartz'}, 'Quartz Slab', 'Quartz Stairs', 'Rabbit Hide', 'Rail', 'Raw Beef', 'Raw Chicken', 'Raw Fish', 'Raw Porkchop', 'Raw Rabbit', 'Raw Salmon', 'Red Carpet', 'Red Chiseled Sandstone', 'Red Hardened Clay', 'Red Mushroom', 'Red Mushroom Block', 'Red Sand', 'Red Sandstone', 'Red Sandstone Slab', 'Red Sandstone Stairs', 'Red Smooth Sandstone', 'Red Stained Glass', 'Red Stained Glass Pane', 'Red Tulip', 'Red Wool', 'Redstone Lamp', 'Redstone Torch', 'Repeater', 'Rose Bush', 'Rose Red', 'Rotten Flesh', 'Sand', 'Sandstone', 'Sandstone Slab', 'Sandstone Stairs', 'Sea Lantern', 'Seeds', 'Shears', 'Sign', 'Slightly Damaged Anvil', 'Slime Block', 'Smooth Sandstone', 'Snow', 'Snow Block', 'Snowball', 'Soul Sand', 'Spawn Egg', 'Sponge', 'Spruce Door', 'Spruce Fence', 'Spruce Fence Gate', 'Spruce Leaves', 'Spruce Sapling', 'Spruce Wood', 'Spruce Wood Plank', 'Spruce Wood Planks', 'Spruce Wood Slab', 'Spruce Wood Stairs', 'Stick', 'Sticky Piston', 'Stone', 'Stone Brick Slab', 'Stone Brick Stairs', 'Stone Bricks', 'Stone Button', 'Stone Hoe', 'Stone Pressure Plate', 'Stone Slab', 'String', 'Sugar Cane', 'Sunflower', 'TNT', 'Torch', 'Trapped Chest', 'Tripwire Hook', 'True Essence', 'Very Damaged Anvil', 'Vines', 'Water Bottle', 'Water Bucket', 'Wet Sponge', 'Wheat', 'White Carpet', 'White Hardened Clay', 'White Stained Glass', 'White Stained Glass Pane', 'White Tulip', 'White Wool', 'Wooden Button', 'Wooden Hoe', 'Wooden Pressure Plate', 'Wooden Slab', 'Wooden Trapdoor', 'Wool', 'Written Book', 'Yellow Carpet', 'Yellow Hardened Clay', 'Yellow Stained Glass', 'Yellow Stained Glass Pane', 'Yellow Wool', }, })