Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Style guide
Special
uploadwizard
Languages
Language links are at the top of the page across from the title.
BTA-Mirror
Search
Search
English
Create account
Log in
Personal tools
Dark mode
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:ItemToImageMap
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p.get( f ) local args = require( 'Module:ProcessArgs' ).merge() local key = args.key local width = args.width or "16" local height = args.height or "16" local link = args.link or "" local map = { ["Quiver"] = "File:Quiver.png", ["Quartz"] = "File:Quartz.png", ["Nether Coal"] = "File:Nether Coal.png", ["Cloth"] = "File:Cloth.png", ["Pebble"] = "File:Pebble.png", ["Olivine"] = "File:Olivine.png", ["Bucket of Ice Cream"] = "File:Bucket of Ice Cream.png", ["Golden Arrow"] = "File:Golden Arrow.png", ["Steel Ingot"] = "File:Steel Ingot.png", ["Crude Steel"] = "File:Crude Steel.png", ["Chainlinks"] = "File:Chainlinks.png", ["Cherries"] = "File:Cherries.png", ["Charcoal"] = "File:Charcoal.png", ["Hand Cannon"] = "File:Hand Cannon.png", ["Explosive Charge"] = "File:Explosive Charge.png", ["Iron Nugget"] = "File:Iron Nugget.png", ["Gold Nugget"] = "File:Gold Nugget.png", ["Golden Quiver"] = "File:Golden Quiver.png", ["Loaded Hand Cannon"] = "File:Loaded Hand Cannon.png", ["Empty Quiver"] = "File:Empty Quiver.png", ["Label"] = "File:Label.png", ["Filled Label"] = "File:Filled Label.png", ["Steel Helmet"] = "File:Steel Helmet.png", ["Steel Chestplate"] = "File:Steel Chestplate.png", ["Steel Leggings"] = "File:Steel Leggings.png", ["Steel Boots"] = "File:Steel Boots.png", ["Steel Sword"] = "File:Steel Sword.png", ["Steel Pickaxe"] = "File:Steel Pickaxe.png", ["Steel Axe"] = "File:Steel Axe.png", ["Steel Shovel"] = "File:Steel Shovel.png", ["Steel Hoe"] = "File:Steel Hoe.png", ["Block of Quartz"] = "File:Block of Quartz (item).png", ["Oak Log"] = "File:Grid Oak Log.png", ["Block of Steel"] = "File:Grid Block of Steel.png", ["Bow"] = "File:Grid Bow.png", ["Block of Olivine"] = "File:Grid Block of Olivine.png", ["Tinted Glass"] = "File:Tinted Glass.png", ["Glass"] = "File:GlassMC.png", ["Nether Coal Ore"] = "File:Nether Coal grid.png", ["Block of Nether Coal"] = "File:Block of Nether Coal Render 1.7.6.1.png", ["Blast Furnace"] = "File:Grid Blast Furnace.png", ["Iron Ingot"] = "File:Iron Ingot.png", ["Cobblestone"] = "File:Cobblestone.png", ["Cobbled Basalt"] = "File:Cobbled Basalt Block.png", ["Bed"] = "File:Bed.png", ["Trommel"] = "File:Trommel.png", ["Spike Trap"] = "File:Spike Trap.png" } if map[key] == nil then return "<strong class=\"error\">Item not found: " .. args.key .."</strong>" else return "<span class=\"pixelated sprite\" style=\"width:" .. width .. "px; height:" .. height .. "px;\">[[" .. map[key] .. "|link=" .. link .. "]]</span>" end end return p
Summary:
Please note that all contributions to BTA-Mirror may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BTA-Mirror:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:ItemToImageMap/doc
(
edit
)
Toggle limited content width