Module:Inventory slot/Aliases: Difference between revisions
mNo edit summary |
Tool and weapon tooltip for Bedrock Edition |
||
| Line 47: | Line 47: | ||
-- Weapons -- | -- Weapons -- | ||
['Trident'] = { name = 'Trident', text = '/&7 When in main hand:/ &21.1 Attack Speed/ &29 Attack Damage'}, | ['Trident'] = { name = 'Trident', text = '/&7 When in main hand:/ &21.1 Attack Speed/ &29 Attack Damage'}, | ||
['Trident BE'] = { name = 'Trident', text = '/&9 +8 Attack Damage'}, | |||
-- Bedrock and Education Edition display names -- | -- Bedrock and Education Edition display names -- | ||
| Line 246: | Line 247: | ||
for toolGroup, items in pairs( toolGroups ) do | for toolGroup, items in pairs( toolGroups ) do | ||
aliases['Any ' .. toolGroup] = items | aliases['Any ' .. toolGroup] = items | ||
end | |||
-- Tools and weapons in Bedrock Edition -- | |||
local toolsBE = { | |||
{'Wooden', 'Sword', 4 }, | |||
{'Stone', 'Sword', 5 }, | |||
{'Iron', 'Sword', 6 }, | |||
{'Golden', 'Sword', 4 }, | |||
{'Diamond', 'Sword', 7 }, | |||
{'Netherite', 'Sword', 8 }, | |||
{'Wooden', 'Pickaxe', 2 }, | |||
{'Stone', 'Pickaxe', 3 }, | |||
{'Iron', 'Pickaxe', 4 }, | |||
{'Golden', 'Pickaxe', 2 }, | |||
{'Diamond', 'Pickaxe', 5 }, | |||
{'Netherite', 'Pickaxe', 6 }, | |||
{'Wooden', 'Axe', 3 }, | |||
{'Stone', 'Axe', 4 }, | |||
{'Iron', 'Axe', 5 }, | |||
{'Golden', 'Axe', 3 }, | |||
{'Diamond', 'Axe', 6 }, | |||
{'Netherite', 'Axe', 7 }, | |||
{'Wooden', 'Shovel', 1 }, | |||
{'Stone', 'Shovel', 2 }, | |||
{'Iron', 'Shovel', 3 }, | |||
{'Golden', 'Shovel', 1 }, | |||
{'Diamond', 'Shovel', 4 }, | |||
{'Netherite', 'Shovel', 5 }, | |||
{'Wooden', 'Hoe', 2 }, | |||
{'Stone', 'Hoe', 3 }, | |||
{'Iron', 'Hoe', 4 }, | |||
{'Golden', 'Hoe', 2 }, | |||
{'Diamond', 'Hoe', 5 }, | |||
{'Netherite', 'Hoe', 6 } | |||
} | |||
for _, toolProps in ipairs( tools ) do | |||
local aliasName = toolProps[1] .. ' ' .. toolProps[2] .. 'BE' | |||
aliases[aliasName] = { title = aliasName, name = aliasName, text = '/&9+' .. toolProps[3] .. ' Attack Damage'} | |||
end | end | ||