Difference between revisions of "Template:Inventory slot"
Sprite>Majr |
m (1 revision imported) |
(No difference)
|
Latest revision as of 13:44, 13 May 2021
These scripts are written in Lua.
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used are primarily taken from {{InvSprite}}
, but if the specified item is not found, the template falls back to individual images in the format of Grid <item name>.png
. However, this should never happen, and any cases of it happening must be looked into.
Contents
Usage
All inputs are optional:
{{Slot |[Title]Mod:Name,Amount[Description]; [Title2]Mod2:Name2,Amount2[Description2]; ... |mod=Default mod (useful for animations and layout templates) |default=Image always shown under the main image |align=Vertical Alignment |link=Link override |title=Text show on mouseover |class=Adds additional classes to the .invslot class |style=Adds styling to the .invslot |imgclass=Adds additional classes to the .invslot-item |numstyle=Adds styling to the stack number }}
Parts
The first parameter is a special parameter consisting of various "parts" grouped together in frames (delimited by ;
) which will be display one after another if JavaScript is enabled. Every part is optional, but without "name", won't do anything.
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: {{Slot|Raw Porkchop,20}}
- shows
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
Alias | Output |
---|---|
Acacia Fence Gate BE |
|
Any Balloon Matching Balloon |
|
Any Banner Matching Banner |
|
Any Bed Matching Bed |
|
Any Blackstone Matching Blackstone |
|
Any Boat Matching Boat |
|
Any Campfire Matching Campfire |
|
Any Candle Matching Candle |
|
Any Carpet Matching Carpet |
|
Any Cobblestone or Blackstone Matching Cobblestone or Blackstone |
|
Any Colored Dye Matching Colored Dye |
|
Any Concrete Matching Concrete |
|
Any Concrete Powder Matching Concrete Powder |
|
Any Copper Block Matching Copper Block |
|
Any Coral Matching Coral |
|
Any Coral Block Matching Coral Block |
|
Any Coral Fan Matching Coral Fan |
|
Any Cut Copper Matching Cut Copper |
|
Any Cut Copper Slab Matching Cut Copper Slab |
|
Any Cut Copper Stairs Matching Cut Copper Stairs |
|
Any Dead Coral Matching Dead Coral |
|
Any Dead Coral Block Matching Dead Coral Block |
|
Any Dead Coral Fan Matching Dead Coral Fan |
|
Any Dye Matching Dye |
|
Any Dyed Bed Matching Dyed Bed |
|
Any Dyed Candle Matching Dyed Candle |
|
Any Dyed Carpet Matching Dyed Carpet |
|
Any Dyed Terracotta Matching Dyed Terracotta |
|
Any Dyed Wool Matching Dyed Wool |
|
Any Fence Gate Matching Fence Gate |
|
Any Firework Star Matching Firework Star |
|
Any Flower Matching Flower |
|
Any Fungi Matching Fungi |
|
Any Fungus Matching Fungus |
|
Any Glazed Terracotta Matching Glazed Terracotta |
|
Any Hardened Stained Glass Matching Hardened Stained Glass |
|
Any Hardened Stained Glass Pane Matching Hardened Stained Glass Pane |
|
Any Hyphae Matching Hyphae |
|
Any Lantern Matching Lantern |
|
Any Lingering Potion Matching Lingering Potion |
Lingering Potion of RegenerationLingering Potion of SwiftnessLingering Potion of Fire ResistanceLingering Potion of PoisonLingering Potion of HealingLingering Potion of Night VisionLingering Potion of WeaknessLingering Potion of StrengthLingering Potion of SlownessLingering Potion of LeapingLingering Potion of HarmingLingering Potion of Water BreathingLingering Potion of InvisibilityLingering Potion of Slow FallingLingering Potion of LuckLingering Potion of DecayLingering Potion of the Turtle Master |
Any Log Matching Log |
|
Any Log or Stem Matching Log or Stem |
|
Any Mushroom Matching Mushroom |
|
Any Nether Planks Matching Nether Planks |
|
Any Nether Wood Door Matching Nether Wood Door |
|
Any Nether Wood Fence Matching Nether Wood Fence |
|
Any Nether Wood Fence Gate Matching Nether Wood Fence Gate |
|
Any Nether Wood Pressure Plate Matching Nether Wood Pressure Plate |
|
Any Nether Wood Sign Matching Nether Wood Sign |
|
Any Nether Wood Stairs Matching Nether Wood Stairs |
|
Any Nether Wood Trapdoor Matching Nether Wood Trapdoor |
|
Any Nether wood Slab Matching Nether wood Slab |
|
Any Nylium Matching Nylium |
|
Any Ore Matching Ore |
|
Any Overworld Planks Matching Overworld Planks |
|
Any Overworld wood Slab Matching Overworld wood Slab |
|
Any Planks Matching Planks |
|
Any Potion Matching Potion |
Potion of RegenerationPotion of SwiftnessPotion of Fire ResistancePotion of PoisonPotion of HealingPotion of Night VisionPotion of WeaknessPotion of StrengthPotion of SlownessPotion of LeapingPotion of HarmingPotion of Water BreathingPotion of InvisibilityPotion of Slow FallingPotion of LuckPotion of DecayPotion of the Turtle Master |
Any Prismarine Matching Prismarine |
Prismarine |
Any Purpur Block Matching Purpur Block |
|
Any Quartz Block Matching Quartz Block |
|
Any Red Sandstone Matching Red Sandstone |
|
Any Roots Matching Roots |
|
Any Sandstone Matching Sandstone |
|
Any Sapling Matching Sapling |
|
Any Shield Matching Shield |
|
Any Shulker Box Matching Shulker Box |
|
Any Sign Matching Sign |
|
Any Soul Sand Matching Soul Sand |
|
Any Splash Potion Matching Splash Potion |
Splash Potion of RegenerationSplash Potion of SwiftnessSplash Potion of Fire ResistanceSplash Potion of PoisonSplash Potion of HealingSplash Potion of Night VisionSplash Potion of WeaknessSplash Potion of StrengthSplash Potion of SlownessSplash Potion of LeapingSplash Potion of HarmingSplash Potion of Water BreathingSplash Potion of InvisibilitySplash Potion of Slow FallingSplash Potion of LuckSplash Potion of DecaySplash Potion of the Turtle Master |
Any Stained Glass Matching Stained Glass |
|
Any Stained Glass Pane Matching Stained Glass Pane |
|
Any Stem Matching Stem |
|
Any Stone Matching Stone |
|
Any Stone Bricks Matching Stone Bricks |
|
Any Stone Button Matching Stone Button |
|
Any Stone Pressure Plate Matching Stone Pressure Plate |
|
Any Stone Slab Matching Stone Slab |
Prismarine Slab |
Any Stone Stairs Matching Stone Stairs |
Prismarine Stairs |
Any Stripped Hyphae Matching Stripped Hyphae |
|
Any Stripped Log Matching Stripped Log |
|
Any Stripped Log or Stem Matching Stripped Log or Stem |
|
Any Stripped Stem Matching Stripped Stem |
|
Any Stripped Wood Matching Stripped Wood |
|
Any Stripped Wood or Hyphae Matching Stripped Wood or Hyphae |
|
Any Tipped Arrow Matching Tipped Arrow |
|
Any Torch Matching Torch |
|
Any Tulip Matching Tulip |
|
Any Wall Matching Wall |
Prismarine Wall |
Any Wood Matching Wood |
|
Any Wood Button Matching Wood Button |
|
Any Wood Door Matching Wood Door |
|
Any Wood Fence Matching Wood Fence |
|
Any Wood Fence Gate Matching Wood Fence Gate |
|
Any Wood Planks Matching Wood Planks |
|
Any Wood Pressure Plate Matching Wood Pressure Plate |
|
Any Wood Sign Matching Wood Sign |
|
Any Wood Slab Matching Wood Slab |
|
Any Wood Stairs Matching Wood Stairs |
|
Any Wood Trapdoor Matching Wood Trapdoor |
|
Any Wood or Hyphae Matching Wood or Hyphae |
|
Any Wool Matching Wool |
|
Any axe Matching axe |
|
Any chainmail armor Matching chainmail armor |
|
Any diamond armor Matching diamond armor |
|
Any diamond tools Matching diamond tools |
|
Any fuel Matching fuel |
|
Any golden armor Matching golden armor |
|
Any golden tools Matching golden tools |
|
Any hoe Matching hoe |
|
Any iron armor Matching iron armor |
|
Any iron tools Matching iron tools |
|
Any leather armor Matching leather armor |
|
Any netherite armor Matching netherite armor |
|
Any netherite tools Matching netherite tools |
|
Any pickaxe Matching pickaxe |
|
Any shovel Matching shovel |
|
Any stone tools Matching stone tools |
|
Any stone-tier block Matching stone-tier block |
|
Any sword Matching sword |
|
Any wood Button Matching wood Button |
|
Any wood Door Matching wood Door |
|
Any wood Fence Matching wood Fence |
|
Any wood Pressure Plate Matching wood Pressure Plate |
|
Any wood Slab Matching wood Slab |
|
Any wood Stairs Matching wood Stairs |
|
Any wood Trapdoor Matching wood Trapdoor |
|
Any wooden tools Matching wooden tools |
|
Arrow Loaded Crossbow |
|
Arrow of Decay |
|
Arrow of Fire Resistance |
|
Arrow of Fire Resistance Extended |
|
Arrow of Harming |
|
Arrow of Harming Enhanced |
|
Arrow of Healing |
|
Arrow of Healing Enhanced |
|
Arrow of Invisibility |
|
Arrow of Invisibility Extended |
|
Arrow of Leaping |
|
Arrow of Leaping Enhanced |
|
Arrow of Leaping Extended |
|
Arrow of Luck |
|
Arrow of Night Vision |
|
Arrow of Night Vision Extended |
|
Arrow of Poison |
|
Arrow of Poison Enhanced |
|
Arrow of Poison Extended |
|
Arrow of Regeneration |
|
Arrow of Regeneration Enhanced |
|
Arrow of Regeneration Extended |
|
Arrow of Slow Falling |
|
Arrow of Slow Falling Extended |
|
Arrow of Slowness |
|
Arrow of Slowness Enhanced |
|
Arrow of Slowness Extended |
|
Arrow of Splashing |
|
Arrow of Strength |
|
Arrow of Strength Enhanced |
|
Arrow of Strength Extended |
|
Arrow of Swiftness |
|
Arrow of Swiftness Enhanced |
|
Arrow of Swiftness Extended |
|
Arrow of Water Breathing |
|
Arrow of Water Breathing Extended |
|
Arrow of Weakness |
|
Arrow of Weakness Extended |
|
Arrow of the Turtle Master |
|
Arrow of the Turtle Master Enhanced |
|
Arrow of the Turtle Master Extended |
|
Awkward Lingering Potion |
|
Awkward Potion |
|
Awkward Splash Potion |
|
Banner Pattern Bordure Indented |
|
Banner Pattern Creeper |
|
Banner Pattern Creeper Charge |
|
Banner Pattern Field Masoned |
|
Banner Pattern Flower |
|
Banner Pattern Flower Charge |
|
Banner Pattern Globe |
|
Banner Pattern Mojang |
|
Banner Pattern Piglin |
|
Banner Pattern Skull |
|
Banner Pattern Skull Charge |
|
Banner Pattern Snout |
|
Banner Pattern Thing |
|
Beacon |
|
Beacon BE |
|
Birch Fence Gate BE |
|
Black Firework Star |
|
Blue Firework Star |
|
Blue Ice BE |
|
Blue Key |
Blue Key |
Bottle o' Enchanting |
Bottle o' Enchanting |
Bow BE |
|
Broken Elytra |
|
Brown Firework Star |
|
Bubble Column |
Bubble Column |
Bucket of Pufferfish BE |
|
Bucket of Tropical Fish BE |
|
Button |
|
Chain Command Block |
Chain Command Block |
Chest BE |
|
Chloride |
|
Clay (ball) |
|
Clay (block) |
|
Clock |
Clock |
Command Block |
Command Block |
Compass |
Compass |
Conduit |
|
Conduit BE |
|
Cooked Beef |
|
Creeper Head |
|
Creeper Head BE |
|
Crimson Fence Gate BE |
|
Crimson Hyphae |
Crimson Hyphae |
Crimson Stem |
Crimson Stem |
Crying Obsidian BE |
|
Cyan Firework Star |
|
Damaged Arrow Loaded Crossbow |
|
Damaged Bow |
|
Damaged Carrot on a Stick |
|
Damaged Chainmail Boots |
|
Damaged Chainmail Chestplate |
|
Damaged Chainmail Helmet |
|
Damaged Chainmail Leggings |
|
Damaged Crossbow |
|
Damaged Diamond Axe |
|
Damaged Diamond Boots |
|
Damaged Diamond Chestplate |
|
Damaged Diamond Helmet |
|
Damaged Diamond Hoe |
|
Damaged Diamond Leggings |
|
Damaged Diamond Pickaxe |
|
Damaged Diamond Shovel |
|
Damaged Diamond Sword |
|
Damaged Elytra |
|
Damaged Firework Loaded Crossbow |
|
Damaged Fishing Rod |
|
Damaged Flint and Steel |
|
Damaged Golden Axe |
|
Damaged Golden Boots |
|
Damaged Golden Chestplate |
|
Damaged Golden Helmet |
|
Damaged Golden Hoe |
|
Damaged Golden Leggings |
|
Damaged Golden Pickaxe |
|
Damaged Golden Shovel |
|
Damaged Golden Sword |
|
Damaged Iron Axe |
|
Damaged Iron Boots |
|
Damaged Iron Chestplate |
|
Damaged Iron Helmet |
|
Damaged Iron Hoe |
|
Damaged Iron Leggings |
|
Damaged Iron Pickaxe |
|
Damaged Iron Shovel |
|
Damaged Iron Sword |
|
Damaged Leather Boots |
|
Damaged Leather Cap |
|
Damaged Leather Pants |
|
Damaged Leather Tunic |
|
Damaged Netherite Axe |
|
Damaged Netherite Boots |
|
Damaged Netherite Chestplate |
|
Damaged Netherite Helmet |
|
Damaged Netherite Hoe |
|
Damaged Netherite Leggings |
|
Damaged Netherite Pickaxe |
|
Damaged Netherite Shovel |
|
Damaged Netherite Sword |
|
Damaged Shears |
|
Damaged Shield |
|
Damaged Stone Axe |
|
Damaged Stone Hoe |
|
Damaged Stone Pickaxe |
|
Damaged Stone Shovel |
|
Damaged Stone Sword |
|
Damaged Wooden Axe |
|
Damaged Wooden Hoe |
|
Damaged Wooden Pickaxe |
|
Damaged Wooden Shovel |
|
Damaged Wooden Sword |
|
Dark Oak Fence Gate BE |
|
Debug Stick |
Debug Stick |
Diamond Axe |
|
Diamond Axe BE |
|
Diamond Hoe |
|
Diamond Hoe BE |
|
Diamond Pickaxe |
|
Diamond Pickaxe BE |
|
Diamond Shovel |
|
Diamond Shovel BE |
|
Diamond Sword |
|
Diamond Sword BE |
|
Dragon Egg |
|
Dragon Egg BE |
|
Dragon Head |
|
Dragon Head BE |
|
Dragon's Breath |
|
Elytra |
|
Elytra Wings |
|
Enchanted Book |
Enchanted Book |
Enchanted Golden Apple |
Enchanted Golden Apple |
Enchanting Table BE |
|
End Crystal |
End Crystal |
End Gateway BE |
|
End Portal BE |
|
End Portal Frame BE |
|
End Rod BE |
|
Ender Chest BE |
|
Filled Bundle |
|
Fire |
Fire |
Firework Loaded Crossbow |
|
Flowing Lava BE |
|
Glass Pane BE |
|
Glowstone BE |
|
Golden Apple |
|
Golden Axe |
|
Golden Axe BE |
|
Golden Hoe |
|
Golden Hoe BE |
|
Golden Pickaxe |
|
Golden Pickaxe BE |
|
Golden Shovel |
|
Golden Shovel BE |
|
Golden Sword |
|
Golden Sword BE |
|
Gray Firework Star |
|
Green Firework Star |
|
Half Filled Bundle |
|
Head |
|
Head BE |
|
Heart of the Sea |
|
Heat Block |
Heat Block |
Honey Block BE |
|
Horn Coral Block BE |
|
Iron Axe |
|
Iron Axe BE |
|
Iron Bars BE |
|
Iron Hoe |
|
Iron Hoe BE |
|
Iron Pickaxe |
|
Iron Pickaxe BE |
|
Iron Shovel |
|
Iron Shovel BE |
|
Iron Sword |
|
Iron Sword BE |
|
Jack o'Lantern BE |
|
Jigsaw Block |
|
Jigsaw Block BE |
|
Jungle Fence Gate BE |
|
Jungle Leaves BE |
|
Lava |
Lava |
Lava BE |
|
Lead (element) |
|
Leather Horse Armor BE |
|
Light 0 |
|
Light 1 |
|
Light 10 |
|
Light 11 |
|
Light 12 |
|
Light 13 |
|
Light 14 |
|
Light 15 |
|
Light 2 |
|
Light 3 |
|
Light 4 |
|
Light 5 |
|
Light 6 |
|
Light 7 |
|
Light 8 |
|
Light 9 |
|
Light Block 0 |
|
Light Block 1 |
|
Light Block 10 |
|
Light Block 11 |
|
Light Block 12 |
|
Light Block 13 |
|
Light Block 14 |
|
Light Block 15 |
|
Light Block 2 |
|
Light Block 3 |
|
Light Block 4 |
|
Light Block 5 |
|
Light Block 6 |
|
Light Block 7 |
|
Light Block 8 |
|
Light Block 9 |
|
Light Blue Firework Star |
|
Light Gray Firework Star |
|
Light Negative |
|
Lime Firework Star |
|
Lingering Potion of Decay |
Lingering Potion of Decay |
Lingering Potion of Fire Resistance |
Lingering Potion of Fire Resistance |
Lingering Potion of Fire Resistance Extended |
Lingering Potion of Fire Resistance |
Lingering Potion of Harming |
Lingering Potion of Harming |
Lingering Potion of Harming Enhanced |
Lingering Potion of Harming |
Lingering Potion of Healing |
Lingering Potion of Healing |
Lingering Potion of Healing Enhanced |
Lingering Potion of Healing |
Lingering Potion of Invisibility |
Lingering Potion of Invisibility |
Lingering Potion of Invisibility Extended |
Lingering Potion of Invisibility |
Lingering Potion of Leaping |
Lingering Potion of Leaping |
Lingering Potion of Leaping Enhanced |
Lingering Potion of Leaping |
Lingering Potion of Leaping Extended |
Lingering Potion of Leaping |
Lingering Potion of Luck |
Lingering Potion of Luck |
Lingering Potion of Night Vision |
Lingering Potion of Night Vision |
Lingering Potion of Night Vision Extended |
Lingering Potion of Night Vision |
Lingering Potion of Poison |
Lingering Potion of Poison |
Lingering Potion of Poison Enhanced |
Lingering Potion of Poison |
Lingering Potion of Poison Extended |
Lingering Potion of Poison |
Lingering Potion of Regeneration |
Lingering Potion of Regeneration |
Lingering Potion of Regeneration Enhanced |
Lingering Potion of Regeneration |
Lingering Potion of Regeneration Extended |
Lingering Potion of Regeneration |
Lingering Potion of Slow Falling |
Lingering Potion of Slow Falling |
Lingering Potion of Slow Falling Extended |
Lingering Potion of Slow Falling |
Lingering Potion of Slowness |
Lingering Potion of Slowness |
Lingering Potion of Slowness Enhanced |
Lingering Potion of Slowness |
Lingering Potion of Slowness Extended |
Lingering Potion of Slowness |
Lingering Potion of Strength |
Lingering Potion of Strength |
Lingering Potion of Strength Enhanced |
Lingering Potion of Strength |
Lingering Potion of Strength Extended |
Lingering Potion of Strength |
Lingering Potion of Swiftness |
Lingering Potion of Swiftness |
Lingering Potion of Swiftness Enhanced |
Lingering Potion of Swiftness |
Lingering Potion of Swiftness Extended |
Lingering Potion of Swiftness |
Lingering Potion of Water Breathing |
Lingering Potion of Water Breathing |
Lingering Potion of Water Breathing Extended |
Lingering Potion of Water Breathing |
Lingering Potion of Weakness |
Lingering Potion of Weakness |
Lingering Potion of Weakness Extended |
Lingering Potion of Weakness |
Lingering Potion of the Turtle Master |
Lingering Potion of the Turtle Master |
Lingering Potion of the Turtle Master Enhanced |
Lingering Potion of the Turtle Master |
Lingering Potion of the Turtle Master Extended |
Lingering Potion of the Turtle Master |
Lingering Water Bottle |
|
Locator Map |
|
Lodestone Compass |
Lodestone Compass |
Lodestone Compass BE |
Lodestone Compass |
Magenta Firework Star |
|
Magma Block |
Magma Block |
Magma Block BE |
|
Map (no markers) |
|
Map BE |
|
Minecart with Command Block BE |
|
Mundane Lingering Potion |
|
Mundane Potion |
|
Mundane Splash Potion |
|
Music Disc 11 |
|
Music Disc 13 |
|
Music Disc Blocks |
|
Music Disc Cat |
|
Music Disc Chirp |
|
Music Disc Far |
|
Music Disc Mall |
|
Music Disc Mellohi |
|
Music Disc Pigstep |
|
Music Disc Stal |
|
Music Disc Strad |
|
Music Disc Wait |
|
Music Disc Ward |
|
Nether Portal |
Nether Portal |
Nether Star |
Nether Star |
Netherite Axe |
|
Netherite Axe BE |
|
Netherite Hoe |
|
Netherite Hoe BE |
|
Netherite Pickaxe |
|
Netherite Pickaxe BE |
|
Netherite Shovel |
|
Netherite Shovel BE |
|
Netherite Sword |
|
Netherite Sword BE |
|
Oak Fence Gate BE |
|
Observer BE |
|
Ocean Explorer Map BE |
|
Orange Firework Star |
|
Peony BE |
|
Peony LCE |
|
Pink Firework Star |
|
Player Head |
|
Potion of Decay |
Potion of Decay |
Potion of Fire Resistance |
Potion of Fire Resistance |
Potion of Fire Resistance Extended |
Potion of Fire Resistance |
Potion of Harming |
Potion of Harming |
Potion of Harming Enhanced |
Potion of Harming |
Potion of Healing |
Potion of Healing |
Potion of Healing Enhanced |
Potion of Healing |
Potion of Invisibility |
Potion of Invisibility |
Potion of Invisibility Extended |
Potion of Invisibility |
Potion of Leaping |
Potion of Leaping |
Potion of Leaping Enhanced |
Potion of Leaping |
Potion of Leaping Extended |
Potion of Leaping |
Potion of Luck |
Potion of Luck |
Potion of Night Vision |
Potion of Night Vision |
Potion of Night Vision Extended |
Potion of Night Vision |
Potion of Poison |
Potion of Poison |
Potion of Poison Enhanced |
Potion of Poison |
Potion of Poison Extended |
Potion of Poison |
Potion of Regeneration |
Potion of Regeneration |
Potion of Regeneration Enhanced |
Potion of Regeneration |
Potion of Regeneration Extended |
Potion of Regeneration |
Potion of Slow Falling |
Potion of Slow Falling |
Potion of Slow Falling Extended |
Potion of Slow Falling |
Potion of Slowness |
Potion of Slowness |
Potion of Slowness Enhanced |
Potion of Slowness |
Potion of Slowness Extended |
Potion of Slowness |
Potion of Strength |
Potion of Strength |
Potion of Strength Enhanced |
Potion of Strength |
Potion of Strength Extended |
Potion of Strength |
Potion of Swiftness |
Potion of Swiftness |
Potion of Swiftness Enhanced |
Potion of Swiftness |
Potion of Swiftness Extended |
Potion of Swiftness |
Potion of Water Breathing |
Potion of Water Breathing |
Potion of Water Breathing Extended |
Potion of Water Breathing |
Potion of Weakness |
Potion of Weakness |
Potion of Weakness Extended |
Potion of Weakness |
Potion of the Turtle Master |
Potion of the Turtle Master |
Potion of the Turtle Master Enhanced |
Potion of the Turtle Master |
Potion of the Turtle Master Extended |
Potion of the Turtle Master |
Prismarine |
Prismarine |
Prismarine Slab |
Prismarine Slab |
Prismarine Stairs |
Prismarine Stairs |
Prismarine Wall |
Prismarine Wall |
Purple Firework Star |
|
Red Firework Star |
|
Red Key |
Red Key |
Repeating Command Block |
Repeating Command Block |
Rose Bush BE |
|
Rose Bush LCE |
|
Scaffolding BE |
|
Sculk Sensor |
Sculk Sensor |
Sculk Sensor BE |
Sculk Sensor BE |
Sea Lantern |
Sea Lantern |
Sea Lantern BE |
|
Shroomlight BE |
|
Shrub LCE |
|
Skeleton Skull |
|
Skeleton Skull BE |
|
Soul Fire |
Soul Fire |
Sparkler |
|
Spawn Cat BE |
|
Spawn Panda BE |
|
Spawn Wandering Trader BE |
|
Spawner BE |
|
Splash Potion of Decay |
Splash Potion of Decay |
Splash Potion of Fire Resistance |
Splash Potion of Fire Resistance |
Splash Potion of Fire Resistance Extended |
Splash Potion of Fire Resistance |
Splash Potion of Harming |
Splash Potion of Harming |
Splash Potion of Harming Enhanced |
Splash Potion of Harming |
Splash Potion of Healing |
Splash Potion of Healing |
Splash Potion of Healing Enhanced |
Splash Potion of Healing |
Splash Potion of Invisibility |
Splash Potion of Invisibility |
Splash Potion of Invisibility Extended |
Splash Potion of Invisibility |
Splash Potion of Leaping |
Splash Potion of Leaping |
Splash Potion of Leaping Enhanced |
Splash Potion of Leaping |
Splash Potion of Leaping Extended |
Splash Potion of Leaping |
Splash Potion of Luck |
Splash Potion of Luck |
Splash Potion of Night Vision |
Splash Potion of Night Vision |
Splash Potion of Night Vision Extended |
Splash Potion of Night Vision |
Splash Potion of Poison |
Splash Potion of Poison |
Splash Potion of Poison Enhanced |
Splash Potion of Poison |
Splash Potion of Poison Extended |
Splash Potion of Poison |
Splash Potion of Regeneration |
Splash Potion of Regeneration |
Splash Potion of Regeneration Enhanced |
Splash Potion of Regeneration |
Splash Potion of Regeneration Extended |
Splash Potion of Regeneration |
Splash Potion of Slow Falling |
Splash Potion of Slow Falling |
Splash Potion of Slow Falling Extended |
Splash Potion of Slow Falling |
Splash Potion of Slowness |
Splash Potion of Slowness |
Splash Potion of Slowness Enhanced |
Splash Potion of Slowness |
Splash Potion of Slowness Extended |
Splash Potion of Slowness |
Splash Potion of Strength |
Splash Potion of Strength |
Splash Potion of Strength Enhanced |
Splash Potion of Strength |
Splash Potion of Strength Extended |
Splash Potion of Strength |
Splash Potion of Swiftness |
Splash Potion of Swiftness |
Splash Potion of Swiftness Enhanced |
Splash Potion of Swiftness |
Splash Potion of Swiftness Extended |
Splash Potion of Swiftness |
Splash Potion of Water Breathing |
Splash Potion of Water Breathing |
Splash Potion of Water Breathing Extended |
Splash Potion of Water Breathing |
Splash Potion of Weakness |
Splash Potion of Weakness |
Splash Potion of Weakness Extended |
Splash Potion of Weakness |
Splash Potion of the Turtle Master |
Splash Potion of the Turtle Master |
Splash Potion of the Turtle Master Enhanced |
Splash Potion of the Turtle Master |
Splash Potion of the Turtle Master Extended |
Splash Potion of the Turtle Master |
Splash Water Bottle |
|
Spruce Fence Gate BE |
|
Stone Axe |
|
Stone Axe BE |
|
Stone Hoe |
|
Stone Hoe BE |
|
Stone Pickaxe |
|
Stone Pickaxe BE |
|
Stone Shovel |
|
Stone Shovel BE |
|
Stone Sword |
|
Stone Sword BE |
|
Stonecutter |
Stonecutter |
Stonecutter BE |
|
Structure Block |
|
Structure Void BE |
|
Thick Lingering Potion |
|
Thick Potion |
|
Thick Splash Potion |
|
Tipped Arrow |
|
Totem of Undying |
|
Trapped Chest BE |
|
Trident |
|
Trident BE |
|
Uncraftable Lingering Potion |
|
Uncraftable Potion |
|
Uncraftable Splash Potion |
|
Uncraftable Tipped Arrow |
|
Warped Fence Gate BE |
|
Warped Hyphae |
Warped Hyphae |
Warped Stem |
Warped Stem |
Water |
Water |
Water (compound) |
|
Water Bottle |
|
White Firework Star |
|
Wither Skeleton Skull |
|
Wither Skeleton Skull BE |
|
Wooden Axe |
|
Wooden Axe BE |
|
Wooden Button |
|
Wooden Hoe |
|
Wooden Hoe BE |
|
Wooden Pickaxe |
|
Wooden Pickaxe BE |
|
Wooden Shovel |
|
Wooden Shovel BE |
|
Wooden Sword |
|
Wooden Sword BE |
|
Woodland Explorer Map BE |
|
Written Book |
Written Book |
Yellow Firework Star |
|
Yellow Key |
Yellow Key |
Zombie Head |
|
Zombie Head BE |
Note: Banner variations are not included due to how many there are.
The above aliases can be used to shorten common items, such as all wood blocks or adding parts to certain names by default.
{{Slot|Any Log;Golden Apple}}
- shows
When using the alias, parts can be added which will override any parts in the alias.
{{Slot|Any Log,4;[&oShiny Apple]Enchanted Golden Apple}}
- shows
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
{{Slot|Raw Porkchop; Cooked Porkchop|title=Smelly Porkchop}}
- shows
To remove the title, set it to "none": {{Slot|Raw Porkchop; Cooked Porkchop|title=none}}
- shows
However, the first bracketed text can be used to specify a title for each frame individually, and also supports standard formatting codes using &
instead of §
. If the title only contains formatting codes and no actual text, the formatting will be added to the normal title.
{{Slot|[&b]Diamond Sword}}
- shows
The last bracketed text can be used to specify a description, this also supports standard formatting codes, and can also have multiple lines by using forward slashes (/).
{{Slot|[&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage]}}
- shows
Subframes
Subframes are shown as a single frame, but the frames within it are advanced every time the subframe is displayed. A set of frames can be put in a subframe by wrapping it in braces.
Here, an alias (which resolves to multiple frames) is wrapped in a subframe, and a different wood plank variant is shown each animation cycle:
{{Slot|{Any Planks};Iron Ingot}}
- shows
Align
Align uses the vertical-align CSS property. For example to align to the middle:
Smells like {{Slot|Raw Porkchop|align=middle}} in here!
- shows
Default
Default is always shown and is placed under the image. {{Slot|default=Grid layout Brewing Empty}}
{{Slot|Splash Mundane Potion|default=Grid layout Brewing Empty}}
- shows
Link
To change the link for all frames from the image name put: {{Slot|Charcoal|link=Coal#Charcoal}}
- shows
To remove the link, set link to none: {{Slot|Charcoal|link=none}}
- shows
Note that this retains the title.
Available images
In general, an item can be referred to by its tooltip name.
For dyes, dyed items and wood, there are two shortcuts to refer to all colors or tree species. Use e.g. "Any Wood Planks" if the item appears in more than one input slot and doesn't have to be the same color in all slots. Different copies of the same "Any [item]" will switch randomly and separately among the variants. Otherwise, use "Matching [item]"; all slots containing a "Matching" item will cycle through the species or dye colors in unison, even if they're not the same item.
{{Slot|Any Planks}}{{Slot|Any wood Slab}}{{Slot|Any wood Stairs}} {{Slot|Matching Wood Planks}}{{Slot|Matching Wood Slab}}{{Slot|Matching wood Stairs}}
shows
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template.
{{Crafting Table}}
{{Inventory Table}}
{{Furnace}}
{{Brewing Stand}}
{{Stonecutter}}
{{Loom}}
{{Grindstone}}
{{Hotbar}}
{{Inventory}}
{{Inventory slot}}
- Module:UI
es:Plantilla:Inventory slot fr:Modèle:Case inventaire pt:Predefinição:Compartimento de inventário ru:Шаблон:Инвентарный слот