Module:Item Icon

local p = {};

p.ar = { -- ,,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Oak Log",""}, {"Birch Log",""}, },,  {    {"Oak Planks",""}, {"Birch Planks",""}, },,  ,  {    {"Sand",""}, {"Red Sand",""}, },,  ,  {    {"Sandstone",""}, {"Red Sandstone",""}, },,  ,  {    {"Sandstone Bricks",""}, {"Red Sandstone Bricks",""}, }, {    {"Carved Sandstone",""}, {"Red Carved Sandstone",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Sandstone Brick Wall",""}, {"Red Sandstone Brick Wall",""}, },,  ,  ,  ,  ,  ,  {    {"Oak Plank Wall",""}, {"Birch Plank Wall",""}, },,  ,  ,  {    {"Arrow",""}, {"Poisoned Arrow",""}, {"Flame Arrow",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"White Dye",""}, {"Light Gray Dye",""}, {"Gray Dye",""}, {"Black Dye",""}, {"Pink Dye",""}, {"Red Dye",""}, {"Orange Dye",""}, {"Brown Dye",""}, {"Yellow Dye",""}, {"Green Dye",""}, {"Dark Green Dye",""}, {"Cyan Dye",""}, {"Light Blue Dye",""}, {"Blue Dye",""}, {"Purple Dye",""}, {"Magenta Dye",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Potato",""}, {"Poisonous Potato",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Oak Table",""}, {"Birch Table",""}, }, {    {"Oak Chair",""}, {"Birch Chair",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Red Potion",""}, {"Orange Potion",""}, {"Yellow Potion",""}, {"Green Potion",""}, {"Cyan Potion",""}, {"Blue Potion",""}, {"Purple Potion",""}, }, {    {"Red Splash Potion",""}, {"Orange Splash Potion",""}, {"Yellow Splash Potion",""}, {"Green Splash Potion",""}, {"Cyan Splash Potion",""}, {"Blue Splash Potion",""}, {"Purple Splash Potion",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Green Slimeball",""}, {"Red Slimeball",""}, {"Blue Slimeball",""}, {"Yellow Slimeball",""}, {"Purple Slimeball",""}, },,  {    {"0 Fuel Units",""}, {"1 Fuel Unit",""}, {"2 Fuel Units",""}, {"3 Fuel Units",""}, {"4 Fuel Units",""}, {"5 Fuel Units",""}, {"6 Fuel Units",""}, {"7 Fuel Units",""}, {"8 Fuel Units",""}, {"9 Fuel Units",""}, {"10 Fuel Units",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Lamp Oil",""}, {"Lamp Oil (used)",""}, {"Lamp Oil (near-empty)",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Oak Button",""}, {"Birch Button",""}, },,  ,  {    {"Oak Pressure Plate",""}, {"Birch Pressure Plate",""}, },,  ,  ,  ,  ,  ,  ,  {    {"Mama June's Pepperoni Pizza",""}, {"Mama June's Cheese Pizza",""}, {"Mama June's Meatlovers Pizza",""}, {"Mama June's Hawaiian Pizza",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  {    {"Dollar Bill",""}, {"Five Dollar Bill",""}, },,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  , }

function p.item_icon(frame) local id = tonumber(frame.args.id,10) local dv = tonumber(frame.args.dv,10) if (id==nil or id>504) then return "" end if (ar[id+1][dv+1]==nil) then return "" end return ar[id+1][dv+1][2] end

return p