Module:Inventory slot/Aliases: Difference between revisions
mNo edit summary |
m added any potion and any splash potion. Also easily expandable should we want other types |
||
| Line 9: | Line 9: | ||
['Any Fence Gate'] = 'Oak Fence Gate; Spruce Fence Gate; Birch Fence Gate; Jungle Fence Gate; Acacia Fence Gate; Dark Oak Fence Gate', | ['Any Fence Gate'] = 'Oak Fence Gate; Spruce Fence Gate; Birch Fence Gate; Jungle Fence Gate; Acacia Fence Gate; Dark Oak Fence Gate', | ||
['Any fuel'] = 'Coal; Charcoal; Oak Wood; Oak Wood Planks', | ['Any fuel'] = 'Coal; Charcoal; Oak Wood; Oak Wood Planks', | ||
['Any Mushroom'] = '[Mushroom]Red Mushroom; [Mushroom]Brown Mushroom', | ['Any Mushroom'] = '[Mushroom]Red Mushroom; [Mushroom]Brown Mushroom', | ||
['Any Quartz Block'] = 'Block of Quartz; Chiseled Quartz Block; Pillar Quartz Block', | ['Any Quartz Block'] = 'Block of Quartz; Chiseled Quartz Block; Pillar Quartz Block', | ||
| Line 186: | Line 186: | ||
end | end | ||
aliases['Any Firework Star'] = table.concat( aliases['Any Firework Star'], ';' ) | aliases['Any Firework Star'] = table.concat( aliases['Any Firework Star'], ';' ) | ||
local effects = { | |||
"Regeneration", | |||
"Swiftness", | |||
"Fire Resistance", | |||
"Poison", | |||
"Healing", | |||
"Night Vision", | |||
"Weakness", | |||
"Strength", | |||
"Slowness", | |||
"Leaping", | |||
"Harming", | |||
"Water Breathing", | |||
"Invisibility" | |||
} | |||
aliases['Any Potion'] = { | |||
"Water Bottle", | |||
"Awkward Potion", | |||
"Thick Potion", | |||
"Mundane Potion" | |||
} | |||
aliases['Any Splash Potion'] = { | |||
"Splash Water Bottle", | |||
"Awkward Splash Potion", | |||
"Thick Splash Potion", | |||
"Mundane Splash Potion" | |||
} | |||
aliases['Any Lingering Potion'] = { | |||
"Lingering Water Bottle", | |||
"Awkward Lingering Potion", | |||
"Thick Lingering Potion", | |||
"Mundane Lingering Potion" | |||
} | |||
for _, effect in ipairs( effects ) do | |||
table.insert( aliases['Any Potion'], 'Potion of ' .. effect ) | |||
table.insert( aliases['Any Splash'], 'Splash Potion of ' .. effect ) | |||
table.insert( aliases['Any Lingering'], 'Lingering Potion of ' .. effect ) | |||
end | |||
aliases['Any Potion'] = table.concat( aliases['Potion'], ';' ) | |||
aliases['Any Splash Potion'] = table.concat( aliases['Potion'], ';' ) | |||
aliases['Any Lingering Potion'] = table.concat( aliases['Potion'], ';' ) | |||
return aliases | return aliases | ||