Module:Inventory slot/Aliases: Difference between revisions
mNo edit summary |
Command blocks are both animated and purple (previously the animation overwrote the color) |
||
| Line 110: | Line 110: | ||
local lightPurpleTooltips = { | local lightPurpleTooltips = { | ||
'Dragon Egg', | 'Dragon Egg', | ||
'Structure Block', | 'Structure Block', | ||
} | } | ||
for _, name in ipairs( lightPurpleTooltips ) do | for _, name in ipairs( lightPurpleTooltips ) do | ||
aliases[name] = { title = '&d', name = name } | aliases[name] = { title = '&d', name = name } | ||
end | |||
-- Animated icons -- | |||
local animatedIcons = { | |||
'Fire', | |||
'Heat Block', | |||
'Magma Block', | |||
'Prismarine', | |||
'Sea Lantern', | |||
} | |||
for _, icon in ipairs( animatedIcons ) do | |||
aliases[icon] = icon .. '.gif' | |||
end | |||
-- Command blocks are both animated and purple -- | |||
local commandBlocks = { | |||
'Command Block', | |||
'Chain Command Block', | |||
'Repeating Command Block', | |||
} | |||
for _, name in ipairs( animatedIcons ) do | |||
aliases[name] = { title = '&d', name = name .. '.gif' } | |||
end | end | ||
| Line 216: | Line 235: | ||
aliases['Any ' .. aliasName] = aliasItems | aliases['Any ' .. aliasName] = aliasItems | ||
aliases['Matching ' .. aliasName] = aliasItems | aliases['Matching ' .. aliasName] = aliasItems | ||
end | end | ||