Module:Inventory slot/Aliases: Difference between revisions

No edit summary
No edit summary
Line 17: Line 17:
     -- stones --
     -- stones --
['Any Cobblestone or Blackstone'] = { 'Cobblestone', 'Blackstone' },
['Any Cobblestone or Blackstone'] = { 'Cobblestone', 'Blackstone' },
['(Weathered) Copper Block'] = {'Copper Block', 'Lightly Weathered Copper Block', 'Semi-Weathered Copper Block', 'Weathered Copper BlocK'},
 
-- Display names --
-- Display names --
['Broken Elytra'] = { title = '&eElytra', name = 'Broken Elytra' },
['Broken Elytra'] = { title = '&eElytra', name = 'Broken Elytra' },
Line 376: Line 375:
aliases['Any ' .. aliasName] = aliasItems
aliases['Any ' .. aliasName] = aliasItems
aliases['Matching ' .. aliasName] = aliasItems
aliases['Matching ' .. aliasName] = aliasItems
end
-- Copper --
local copperstuff = {
['Matching (Weathered) Copper Block'] = {'Copper Block', 'Lightly Weathered Copper Block', 'Semi-Weathered Copper Block', 'Weathered Copper BlocK'},
['Matching (Weathered) Cut Copper'] = {'Cut Copper', 'Lightly Weathered Cut Copper', 'Semi-Weathered Cut Copper', 'Weathered Cut Copper'},
['Matching Waxed (Weathered) Copper Block'] = {'Waxed Copper Block', 'Waxed Lightly Weathered Copper Block', 'Waxed Semi-Weathered Copper Block'},
['Matching Waxed (Weathered) Cut Copper'] = {'Waxed Cut Copper', 'Waxed Lightly Weathered Cut Copper', 'Waxed Semi-Weathered Cut Copper'},
}
for k, v in pairs(copperstuff) do
aliases[k] = v
local k1 = k:gsub(' Block$')
local v1 = v:gsub(' Block$')
aliases[k1 .. 'Slab'] = v1 .. 'Slab'
aliases[k1 .. 'Stairs'] = v1 .. 'Stairs'
end
end