Module:Inventory slot/Aliases: Difference between revisions
m added damaged elytra |
adding 'Any of the same Wood Planks' |
||
| Line 44: | Line 44: | ||
for _, disc in ipairs( discs ) do | for _, disc in ipairs( discs ) do | ||
local name = disc .. ' Disc' | local name = disc .. ' Disc' | ||
aliases[name] = '[&bMusic Disc]' .. name .. '[& | aliases[name] = '[&bMusic Disc]' .. name .. '[&7C418 - ' .. disc .. ']' | ||
end | end | ||
| Line 253: | Line 253: | ||
'Wood', | 'Wood', | ||
'Boat', | 'Boat', | ||
' | 'Wood Door', | ||
' | 'Wood Fence', | ||
'Wood Planks', | 'Wood Planks', | ||
'Wood Slab', | 'Wood Slab', | ||
| Line 261: | Line 261: | ||
-- used if the items use a different name than the alias | -- used if the items use a different name than the alias | ||
local woodNames = { | local woodNames = { | ||
[' | ['Wood Door'] = 'Door', | ||
[' | ['Wood Fence'] = 'Fence' | ||
} | } | ||
for _, item in ipairs( woodItems ) do | for _, item in ipairs( woodItems ) do | ||
| Line 273: | Line 273: | ||
aliases[name] = table.concat( aliases[name], ';' ) | aliases[name] = table.concat( aliases[name], ';' ) | ||
end | end | ||
aliases['Any of the same Wood Planks'] = {} | |||
for _, wood in ipairs( woods ) do | |||
table.insert( aliases['Any of the same Wood Planks'], wood .. ' Wood Planks' ) | |||
end | |||
aliases['Any of the same Wood Planks'] = table.concat( aliases['Any of the same Wood Planks'], ';' ) | |||
return aliases | return aliases | ||