Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Template:Inventory

From Minecraft Wiki
Jump to: navigation, search


[view | edit | history | purge]Documentation
This template's documentation needs improving or additional information.

This template is used to create an interface which looks similar in-game containers and inventories.

Usage[edit]

To control the contents of the many slots of the inventory and other GUI components, the following parameters may be used.

Common parameters
Parameter Function Default value
type Required. The type of GUI to show. Always includes player inventory. Can be any value from the table headers below
title The custom title to show on the GUI the default title of the GUI
scale The magnification level (size) of the resulting element (doen't work in Firefox or on Android) 1
0 - 8 Hotbar item slots
9 - 17 Top inventory row of item slots
18 - 26 Middle inventory row of item slots
27 - 35 Bottom inventory row of item slots
Recognised arguments for required parameter type
survival
chest
large-chest
furnace
anvil
dispenser
hopper
crafting-table
brewing-stand

Specifications for Various GUI Types[edit]

type=survival parameters
Parameter Function Default value
-106 Offhand item slot
103 Head item slot
102 Body item slot
101 Legs item slot
100 Feet item slot
background The background color of the player avatar preview area next to the armor slots black
recipebook Recipebook button item Knowledge Book
A1, B1 Top 2×2 crafting grid slots
A2, B2 Bottom 2×2 crafting grid slots
Output 2×2 Crafting grid output slot
title Note: This common parameter has no effect on the survival inventory.
type=chest parameters
Parameter Function Default value
C0 - C8 Top chest row of item slots
C9 - C17 Middle chest row of item slots
C18 - C26 Bottom chest row of item slots
type=large-chest parameters
Parameter Function Default value
C0 - C8 Chest row 1 of item slots
C9 - C17 Chest row 2 of item slots
C18 - C26 Chest row 3 of item slots
C27 - C35 Chest row 4 of item slots
C36 - C44 Chest row 5 of item slots
C45 - C53 Chest row 6 of item slots
type=furnace parameters
Parameter Function Default value
Input Furnace input slot
Output Furnace output slot
lit Whether or not to render the fire as lit ("true" means lit, not active otherwise)
Fuel Furnace fuel item slot
recipebook Recipebook button item Knowledge Book
type=anvil parameters
Parameter Function Default value
text The custom text filled into the textfield of the anvil
Input1 The left anvil input slot
Input2 The right anvil input slot
Output The anvil output slot
crossed Whether or not the anvil operation (arrow) should be rendered crossed out ("true" means crossed out, normal otherwise)
cost The enchantment level cost of the anvil operation, any value or "expensive"
expensive Whether or not the anvil operation should be marked as too expensive ("true" means the text for the operation cost becomes dark red, bright green otherwise)
type=dispenser parameters
Parameter Function Default value
D0 - D2 Top dispenser row of item slots
D3 - D5 Middle dispenser row of item slots
D6 - D8 Bottom dispenser row of item slots
type=hopper parameters
Parameter Function Default value
H0 - H4 Hopper item slots
type=crafting-table parameters
Parameter Function Default value
A1, B1, C1 Top 3×3 crafting grid row of slots
A2, B2, C2 Middle 3×3 crafting grid row of slots
A3, B3, C3 Bottom 3×3 crafting grid row of slots
Output 3×3 Crafting grid output slot
recipebook Recipebook button item Knowledge Book
type=brewing-stand parameters
Parameter Function Default value
Fuel Brewing fuel input item slot
Input Brewing input item slot
Output1 The left bottle item slot
Output2 The middle bottle item slot
Output3 The right bottle item slot
fuel Remaining fuel actions 0
progress Brewing action progress 0

Examples[edit]

Survival inventory[edit]

{{Inventory
|type=survival
|0=[&b&oMystical Sword]Diamond Sword[&7Sharpness III/&7Looting III/&7Unbreaking VII/&7Mending//&9+9 Attack Damage]
|1=Diamond Axe
|2=Damaged Diamond Pickaxe
|3=Damaged Bow
|5=Arrow,52
|7=Oak Wood Planks,18
|8=Stick,12
|9=Cobblestone,64
|10=Cobblestone,64
|11=Cobblestone,13
|35=Diamond,43
|A1=Charcoal,17
|A2=Stick,20
|Output=Torch,4
|-106=Totem of Undying
|103=Diamond Helmet
|102=Broken Elytra
|101=Diamond Leggings
|100=Diamond Boots
}}
Result


Furnace[edit]

{{Inventory
|type=furnace
|lit=true
|0=Damaged Wooden Axe
|1=Damaged Stone Pickaxe
|12=Granite,24
|Fuel=Stripped Dark Oak Log,14
|Input=Raw Salmon,8
|Output=Cooked Salmon,56}}
Result
Furnace8
14
56
Inventory24


Large chest[edit]

{{Inventory
|type=large-chest
|title=Treasure Chest
|1=Trident
|5=Glue,3
|6=Blue Torch,64
|C0=Bucket of Salmon
|C1=Kelp,5
|C2=Gold Ingot,6
|C4=Diamond Shovel
|C5=Emerald,3
|C15=Block of Iron,64
|C21=Oak Wood,16
}}
Result
Treasure Chest5636416Inventory364


Crafting table[edit]

{{Inventory
|type=crafting-table
|recipebook=Portfolio
|A1= |B1=Blaze Powder  |C1=
|A2= |B2=Coal,Charcoal |C2=
|A3= |B3=Gunpowder     |C3=
|Output=Fire Charge,3
}}
Result
Crafting
3Inventory


Anvil[edit]

{{Inventory
|type=anvil
|text=Mystical Sword
|crossed=true
|cost=28
|expensive=true
|1=Damaged Diamond Axe
|2=Damaged Diamond Pickaxe
|3=Damaged Bow
|5=Arrow,52
|8=Stick,12
|9=Cobblestone,64
|10=Cobblestone,64
|11=Cobblestone,13
|35=Diamond,43
|Input1=[&b]Diamond Sword[&7Unbreaking VII/&7Mending]
|Input2=Enchanted Book[&7Sharpness III/&7Looting III]
|Output=[&b&oMystical Sword]Diamond Sword[&7Sharpness III/&7Looting III/&7Unbreaking VII/&7Mending//&9+9 Attack Damage]
}}
Result
Repair & NameMystical Sword


Enchantment Cost: 28646413435212


Dispenser[edit]

{{Inventory
|type=dispenser
|D0=Arrow,64
|D1=Firework Rocket,64
|D2=Trident
|D3=Fire Charge,64
|D4=TNT,64
|D5=Ice Bomb,16
|D7=TNT,3
}}
Result
Dispenser64646464163Inventory


Hopper[edit]

{{Inventory
|type=hopper
|H0=Diamond,2
|H1=Wooden Shovel
|H2=Wooden Shovel
|H3=Wooden Shovel
|H4=Wooden Shovel
|0=Dirt,2
}}
Result
Item Hopper2Inventory2


Brewing stand[edit]

{{Inventory
|type=brewing-stand
|title=Magic Stand
|fuel=64
|progress=50
|Fuel=Blaze Powder,13
|Input=Nether Wart
|Output1=Awkward Potion
|Output2=Lingering Potion of Night Vision
|Output3=Antidote
}}
Result
Magic Stand13





Inventory


See also[edit]

[view | edit | history | purge]The above documentation is transcluded from Template:Inventory/doc.