Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,676
edits
m (ipair is plural) |
m (idk how that works man, just don't use Turtle Helmet) Tag: Manual revert |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
local aliases = { | local aliases = { | ||
-- Display names -- | |||
['Broken Elytra'] = { title = '&eElytra', name = 'Broken Elytra' }, | ['Broken Elytra'] = { title = '&eElytra', name = 'Broken Elytra' }, | ||
['Clay (block)'] = { title = 'Clay', name = 'Clay (block)' }, | ['Clay (block)'] = { title = 'Clay', name = 'Clay (block)' }, | ||
Line 5: | Line 6: | ||
['Iron Block'] = { title = 'Block of Iron', name = 'Block of Iron' }, | ['Iron Block'] = { title = 'Block of Iron', name = 'Block of Iron' }, | ||
['Gold Block'] = { title = 'Block of Gold', name = 'Block of Gold' }, | ['Gold Block'] = { title = 'Block of Gold', name = 'Block of Gold' }, | ||
['Diamond Block'] = { title = 'Block of Diamond', name = 'Block of Diamond' } | ['Diamond Block'] = { title = 'Block of Diamond', name = 'Block of Diamond' }, | ||
['Button'] = { title = 'Button', name = 'Stone Button'}, | |||
['Wooden Button'] = { title = 'Button', name = 'Oak Button'}, | |||
['Arrow Loaded Crossbow'] = { title = 'Crossbow', name = 'Arrow Loaded Crossbow' }, | |||
['Damaged Arrow Loaded Crossbow'] = { title = 'Crossbow', name = 'Damaged Arrow Loaded Crossbow' }, | |||
['Firework Loaded Crossbow'] = { title = 'Crossbow', name = 'Firework Loaded Crossbow' }, | |||
['Damaged Firework Loaded Crossbow'] = { title = 'Crossbow', name = 'Damaged Firework Loaded Crossbow' }, | |||
['Illager Banner'] = { title = '&6&oIllager Banner', name = 'Illager Banner', text = | |||
'&7Cyan Lozenge/&7Light Gray Base/&7Gray Pale/&7Light Gray Bordure/&7Black Fess/&7Light Gray Per Fess'}, | |||
['Jigsaw Block'] = { title = '&dJigsaw Block', name = 'Jigsaw Block' }, | |||
['Half Filled Bundle'] = { title = 'Bundle', name = 'Half Filled Bundle' }, | |||
['Filled Bundle'] = { title = 'Bundle', name = 'Filled Bundle' }, | |||
-- Weapons -- | |||
['Trident'] = { name = 'Trident', text = '/&7 When in main hand:/ &21.1 Attack Speed/ &29 Attack Damage'}, | |||
-- Wood -- | |||
['Mangrove Sapling'] = {name = 'Mangrove Propagule'}, | |||
['Bamboo Boat'] = {name ='Bamboo Raft'}, | |||
['Bamboo Boat with Chest'] = {name = 'Bamboo Raft with Chest'} | |||
} | } | ||
-- Tooltip colors -- | -- Tooltip colors -- | ||
Line 30: | Line 49: | ||
local enchantedIconYellowTooltips = { | local enchantedIconYellowTooltips = { | ||
"Bottle o' Enchanting", | |||
'Enchanted Book', | 'Enchanted Book', | ||
'Nether Star' | 'Nether Star' | ||
Line 36: | Line 55: | ||
for _, name in ipairs( enchantedIconYellowTooltips ) do | for _, name in ipairs( enchantedIconYellowTooltips ) do | ||
aliases[name] = { title = '&e', name = name, enchanted = true } | aliases[name] = { title = '&e', name = name, enchanted = "true" } | ||
end | end | ||
Line 53: | Line 72: | ||
for _, name in ipairs( enchantedIconAquaTooltips ) do | for _, name in ipairs( enchantedIconAquaTooltips ) do | ||
aliases[name] = { title = '&b', name = name, enchanted = true } | aliases[name] = { title = '&b', name = name, enchanted = "true" } | ||
end | end | ||
Line 70: | Line 89: | ||
for _, name in ipairs( enchantedIconPurpleTooltips ) do | for _, name in ipairs( enchantedIconPurpleTooltips ) do | ||
aliases[name] = { title = '&d', name = name, enchanted = true } | aliases[name] = { title = '&d', name = name, enchanted = "true" } | ||
end | end | ||
-- Discs -- | -- Discs -- | ||
local discs = { | local discs = { | ||
{ '13', | { '13', 'C418', }, | ||
{ 'Cat', | { 'Cat', 'C418', 'cat' }, | ||
{ 'Blocks', | { 'Blocks', 'C418', 'blocks' }, | ||
{ 'Chirp', | { 'Chirp', 'C418', 'chirp' }, | ||
{ 'Far', | { 'Far', 'C418', 'far' }, | ||
{ 'Mall', | { 'Mall', 'C418', 'mall' }, | ||
{ 'Mellohi', 'C418', | { 'Mellohi', 'C418', 'mellohi' }, | ||
{ 'Stal', | { 'Stal', 'C418', 'stal' }, | ||
{ 'Strad', | { 'Strad', 'C418', 'strad' }, | ||
{ 'Ward', | { 'Ward', 'C418', 'ward' }, | ||
{ '11', | { '11', 'C418', }, | ||
{ 'Wait', | { 'Wait', 'C418', 'wait' }, | ||
{ 'Pigstep', 'Lena Raine', | { 'Otherside', 'Lena Raine', 'otherside' }, | ||
{ 'Pigstep', 'Lena Raine', }, | |||
{ '5', 'Samuel Åberg', }, | |||
} | } | ||
for _, disc in ipairs( discs ) do | for _, disc in ipairs( discs ) do | ||
Line 314: | Line 336: | ||
-- turtle master is weird, so just do a fancy string replacement | -- turtle master is weird, so just do a fancy string replacement | ||
if effect.text then | if effect.text then | ||
aliases[name] = { name = potionName, text = effect.text:gsub( '%$1', durations[1] ), enchanted = true } | aliases[name] = { name = potionName, text = effect.text:gsub( '%$1', durations[1] ), enchanted = "true" } | ||
aliases[name .. ' Extended'] = { name = potionName, text = effect.text:gsub( '%$1', durations[2] ), enchanted = true } | aliases[name .. ' Extended'] = { name = potionName, text = effect.text:gsub( '%$1', durations[2] ), enchanted = "true" } | ||
aliases[name .. ' Enhanced'] = { name = potionName, text = effect.enhanced:gsub( '%$1', durations[3] ), enchanted = true } | aliases[name .. ' Enhanced'] = { name = potionName, text = effect.enhanced:gsub( '%$1', durations[3] ), enchanted = "true" } | ||
else | else | ||
-- we always have normal | -- we always have normal | ||
aliases[name] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[1] ), enchanted = true } | aliases[name] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[1] ), enchanted = "true" } | ||
-- ensure we have extended | -- ensure we have extended | ||
if durations[2] then | if durations[2] then | ||
aliases[name .. ' Extended'] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[2] ), enchanted = true } | aliases[name .. ' Extended'] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[2] ), enchanted = "true" } | ||
-- and enhanced, currently there is nothing with a duration that can be extended but not enhanced | -- and enhanced, currently there is nothing with a duration that can be extended but not enhanced | ||
if effect.enhanced then | if effect.enhanced then | ||
aliases[name .. ' Enhanced'] = { name = potionName, text = string.format( '%s %s (%s)', effect.effect, effect.enhanced, durations[3] ), enchanted = true } | aliases[name .. ' Enhanced'] = { name = potionName, text = string.format( '%s %s (%s)', effect.effect, effect.enhanced, durations[3] ), enchanted = "true" } | ||
end | end | ||
end | end | ||
Line 333: | Line 355: | ||
else | else | ||
-- otherwise its just effect, currently every potion with no duration can be enhanced | -- otherwise its just effect, currently every potion with no duration can be enhanced | ||
aliases[name] = { name = potionName, text = effect.effect, enchanted = | aliases[name] = { name = potionName, text = effect.effect, enchanted = "true" } | ||
aliases[name .. ' Enhanced'] = { name = potionName, text = effect.effect .. ' ' .. effect.enhanced, enchanted = true } | aliases[name .. ' Enhanced'] = { name = potionName, text = effect.effect .. ' ' .. effect.enhanced, enchanted = "true" } | ||
end | end | ||
edits