Module:Inventory slot/Aliases: Difference between revisions

m Moved new additions to the correct "local animatedIcons"
m Created new local called rareAnimatedIcons for Yellow (rare) and Animated inventory icons
Line 97: Line 97:
'Head',
'Head',
'Heart of the Sea',
'Heart of the Sea',
'Nether Star',
'Player Head',
'Player Head',
'Skeleton Skull',
'Skeleton Skull',
Line 131: Line 130:
'Heat Block',
'Heat Block',
'Magma Block',
'Magma Block',
'Nether Star',
'Prismarine',
'Prismarine',
'Prismarine Slab',
'Prismarine Slab',
Line 143: Line 141:
for _, icon in ipairs( animatedIcons ) do
for _, icon in ipairs( animatedIcons ) do
aliases[icon] = icon .. '.gif'
aliases[icon] = icon .. '.gif'
end
-- Nether Stars are both animated and yellow --
local rareAnimatedIcons = {
'Nether Star'
}
for _, name in ipairs( rareAnimatedIcons ) do
aliases[name] = { title = '&e', name = name .. '.gif' }
end
end