VOOZH about

URL: https://minecraft.wiki/w/Template:Inventory

⇱ Template:Inventory – Minecraft Wiki


Template:Inventory

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:Inventory, a script written in Lua.

Note: this template should only be used if you want to show an Inventory, or a recipe with an inventory. If you only want to show a recipe, use its respective template, e.g. {{Furnace}}

General usage

[edit source]

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. Except for the generic type, it always includes the player inventory. There are 7 different values this property can have, as detailed below. Click on a container type to learn more about it.

survival crafting-table furnace brewing-stand anvil legacy-smithing

title The custom title to show on the GUI the default title of the GUI
1 – 9 Hotbar item slots
10 – 18 Top inventory row of item slots
19 – 27 Middle inventory row of item slots
28 – 36 Bottom inventory row of item slots

Survival

[edit source]

The survival type configuration displays an inventory in survival mode.

Parameters
Parameter Function Default value
offhand 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 #000000
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.

Crafting Table

[edit source]

The crafting-table type configuration shows a crafting table's interface.

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

Furnace

[edit source]

The furnace type configuration displays a furnace GUI.

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) false
Fuel Furnace fuel item slot

Brewing Stand

[edit source]

The brewing-stand type configuration displays a brewing stand's GUI.

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

The anvil type configuration displays an anvil GUI.

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) false
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) false

Smithing Table

[edit source]

Legacy

[edit source]

The legacy-smithing type configuration displays the pre-1.20 smithing table GUI.

Parameters
Parameter Function Default value
Input1 The left input slot
Input2 The right input slot
Output The output slot
crossed Whether or not the arrow should be crossed out false

Examples

[edit source]

Survival inventory

[edit source]
{{Inventory
|type=survival
|1=[&b&oMystical Sword]Diamond Sword[&7Sharpness III/&7Looting III/&7Unbreaking VII/&7Mending//&9+9 Attack Damage]
|2=Diamond Axe
|3=Damaged Diamond Pickaxe
|4=Damaged Bow
|6=Arrow,52
|8=Oak Planks,18
|9=Stick,12
|10=Cobblestone,64
|11=Cobblestone,64
|12=Cobblestone,13
|36=Diamond,43
|A1=Charcoal,17
|A2=Stick,20
|Output=Torch,4
|offhand=Totem of Undying
|103=Diamond Helmet
|102=Broken Elytra
|101=Diamond Leggings
|100=Diamond Boots
}}
Result
πŸ‘ Invicon Diamond Helmet.png: Inventory sprite for Diamond Helmet in Minecraft as shown in-game linking to Diamond Helmet with description: Diamond Helmet When on Head: +3 Armor +2 Armor Toughness
πŸ‘ Invicon Broken Elytra.png: Inventory sprite for Broken Elytra in Minecraft as shown in-game linking to Broken Elytra with description: Elytra
πŸ‘ Invicon Diamond Leggings.png: Inventory sprite for Diamond Leggings in Minecraft as shown in-game linking to Diamond Leggings with description: Diamond Leggings When on Legs: +6 Armor +2 Armor Toughness
πŸ‘ Invicon Diamond Boots.png: Inventory sprite for Diamond Boots in Minecraft as shown in-game linking to Diamond Boots with description: Diamond Boots When on Feet: +3 Armor +2 Armor Toughness

πŸ‘ Invicon Totem of Undying.png: Inventory sprite for Totem of Undying in Minecraft as shown in-game linking to Totem of Undying with description:
CraftingπŸ‘ Invicon Charcoal.png: Inventory sprite for Charcoal in Minecraft as shown in-game linking to Charcoal with description: Charcoal
17
πŸ‘ Invicon Stick.png: Inventory sprite for Stick in Minecraft as shown in-game linking to Stick with description: Stick
20

πŸ‘ Invicon Torch.png: Inventory sprite for Torch in Minecraft as shown in-game linking to Torch with description: Torch
4
πŸ‘ Image
πŸ‘ Invicon Cobblestone.png: Inventory sprite for Cobblestone in Minecraft as shown in-game linking to Cobblestone with description: Cobblestone
64
πŸ‘ Invicon Cobblestone.png: Inventory sprite for Cobblestone in Minecraft as shown in-game linking to Cobblestone with description: Cobblestone
64
πŸ‘ Invicon Cobblestone.png: Inventory sprite for Cobblestone in Minecraft as shown in-game linking to Cobblestone with description: Cobblestone
13
πŸ‘ Invicon Diamond.png: Inventory sprite for Diamond in Minecraft as shown in-game linking to Diamond with description: Diamond
43
πŸ‘ Invicon Diamond Sword.png: Inventory sprite for Diamond Sword in Minecraft as shown in-game linking to Diamond Sword with description: Mystical Sword Sharpness III Looting III Unbreaking VII Mending +9 Attack Damage
πŸ‘ Invicon Diamond Axe.png: Inventory sprite for Diamond Axe in Minecraft as shown in-game linking to Diamond Axe with description: Diamond Axe When in Main Hand:  9 Attack Damage  1 Attack Speed
πŸ‘ Invicon Damaged Diamond Pickaxe.png: Inventory sprite for Damaged Diamond Pickaxe in Minecraft as shown in-game linking to Diamond Pickaxe with description: Diamond Pickaxe When in Main Hand:  5 Attack Damage  1.2 Attack Speed
πŸ‘ Invicon Damaged Bow.png: Inventory sprite for Damaged Bow in Minecraft as shown in-game linking to Bow with description: Bow
πŸ‘ Invicon Arrow.png: Inventory sprite for Arrow in Minecraft as shown in-game linking to Arrow with description: Arrow
52
πŸ‘ Invicon Oak Planks.png: Inventory sprite for Oak Planks in Minecraft as shown in-game linking to Oak Planks with description: Oak Planks
18
πŸ‘ Invicon Stick.png: Inventory sprite for Stick in Minecraft as shown in-game linking to Stick with description: Stick
12

Crafting table

[edit source]
{{Inventory
|type=crafting-table
|A1= |B1=Blaze Powder |C1=
|A2= |B2=Coal;Charcoal |C2=
|A3= |B3=Gunpowder |C3=
|Output=Fire Charge,3
|9=Obsidian,99
}}
Result
CraftingπŸ‘ Invicon Blaze Powder.png: Inventory sprite for Blaze Powder in Minecraft as shown in-game linking to Blaze Powder with description: Blaze Powder
πŸ‘ Invicon Coal.png: Inventory sprite for Coal in Minecraft as shown in-game linking to Coal with description: Coal
πŸ‘ Invicon Charcoal.png: Inventory sprite for Charcoal in Minecraft as shown in-game linking to Charcoal with description: Charcoal
πŸ‘ Invicon Gunpowder.png: Inventory sprite for Gunpowder in Minecraft as shown in-game linking to Gunpowder with description: Gunpowder

πŸ‘ Invicon Fire Charge.png: Inventory sprite for Fire Charge in Minecraft as shown in-game linking to Fire Charge with description: Fire Charge
3
πŸ‘ Image
InventoryπŸ‘ Invicon Obsidian.png: Inventory sprite for Obsidian in Minecraft as shown in-game linking to Obsidian with description: Obsidian
99

Furnace

[edit source]
{{Inventory
|type=furnace
|lit=true
|1=Damaged Wooden Axe
|2=Damaged Stone Pickaxe
|13=Granite,24
|Fuel=Stripped Dark Oak Log,14
|Input=Raw Salmon,8
|Output=Cooked Salmon,56}}
Result
FurnaceπŸ‘ Invicon Raw Salmon.png: Inventory sprite for Raw Salmon in Minecraft as shown in-game linking to Raw Salmon with description: Raw Salmon
8

πŸ‘ Invicon Stripped Dark Oak Log.png: Inventory sprite for Stripped Dark Oak Log in Minecraft as shown in-game linking to Stripped Dark Oak Log with description: Stripped Dark Oak Log
14

πŸ‘ Invicon Cooked Salmon.png: Inventory sprite for Cooked Salmon in Minecraft as shown in-game linking to Cooked Salmon with description: Cooked Salmon
56
πŸ‘ Image
InventoryπŸ‘ Invicon Granite.png: Inventory sprite for Granite in Minecraft as shown in-game linking to Granite with description: Granite
24
πŸ‘ Invicon Damaged Wooden Axe.png: Inventory sprite for Damaged Wooden Axe in Minecraft as shown in-game linking to Wooden Axe with description: Wooden Axe When in Main Hand:  7 Attack Damage  0.8 Attack Speed
πŸ‘ Invicon Damaged Stone Pickaxe.png: Inventory sprite for Damaged Stone Pickaxe in Minecraft as shown in-game linking to Stone Pickaxe with description: Stone Pickaxe When in Main Hand:  3 Attack Damage  1.2 Attack Speed

Brewing stand

[edit source]
{{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 StandπŸ‘ Invicon Blaze Powder.png: Inventory sprite for Blaze Powder in Minecraft as shown in-game linking to Blaze Powder with description: Blaze Powder
13
πŸ‘ Invicon Nether Wart.png: Inventory sprite for Nether Wart in Minecraft as shown in-game linking to Nether Wart with description: Nether Wart
πŸ‘ Invicon Awkward Potion.png: Inventory sprite for Awkward Potion in Minecraft as shown in-game linking to Awkward Potion with description: Awkward Potion No Effects
πŸ‘ Invicon Lingering Potion of Night Vision.png: Inventory sprite for Lingering Potion of Night Vision in Minecraft as shown in-game linking to Lingering Potion of Night Vision with description: Lingering Potion of Night Vision Night Vision (00:45)
πŸ‘ Invicon Antidote.png: Inventory sprite for Antidote in Minecraft as shown in-game linking to Antidote with description: Antidote






Inventory
{{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πŸ‘ Invicon Diamond Sword.png: Inventory sprite for Diamond Sword in Minecraft as shown in-game linking to Diamond Sword with description: Unbreaking VII Mending
πŸ‘ Invicon Enchanted Book.png: Inventory sprite for Enchanted Book in Minecraft as shown in-game linking to Enchanted Book with description: Sharpness III Looting III
πŸ‘ Invicon Diamond Sword.png: Inventory sprite for Diamond Sword in Minecraft as shown in-game linking to Diamond Sword with description: Mystical Sword Sharpness III Looting III Unbreaking VII Mending +9 Attack Damage



Enchantment Cost: 28InventoryπŸ‘ Invicon Cobblestone.png: Inventory sprite for Cobblestone in Minecraft as shown in-game linking to Cobblestone with description: Cobblestone
64
πŸ‘ Invicon Cobblestone.png: Inventory sprite for Cobblestone in Minecraft as shown in-game linking to Cobblestone with description: Cobblestone
64
πŸ‘ Invicon Cobblestone.png: Inventory sprite for Cobblestone in Minecraft as shown in-game linking to Cobblestone with description: Cobblestone
13
πŸ‘ Invicon Diamond.png: Inventory sprite for Diamond in Minecraft as shown in-game linking to Diamond with description: Diamond
43
πŸ‘ Invicon Damaged Diamond Axe.png: Inventory sprite for Damaged Diamond Axe in Minecraft as shown in-game linking to Diamond Axe with description: Diamond Axe When in Main Hand:  9 Attack Damage  1 Attack Speed
πŸ‘ Invicon Damaged Diamond Pickaxe.png: Inventory sprite for Damaged Diamond Pickaxe in Minecraft as shown in-game linking to Diamond Pickaxe with description: Diamond Pickaxe When in Main Hand:  5 Attack Damage  1.2 Attack Speed
πŸ‘ Invicon Damaged Bow.png: Inventory sprite for Damaged Bow in Minecraft as shown in-game linking to Bow with description: Bow
πŸ‘ Invicon Arrow.png: Inventory sprite for Arrow in Minecraft as shown in-game linking to Arrow with description: Arrow
52
πŸ‘ Invicon Stick.png: Inventory sprite for Stick in Minecraft as shown in-game linking to Stick with description: Stick
12

Smithing Table

[edit source]

Legacy

[edit source]
{{Inventory
|type=legacy-smithing
|Input1=Diamond Sword
|Input2=Netherite Ingot
|Output=Netherite Sword
|crossed=true
}}
Result

See also

[edit source]
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Inventory/doc.
Retrieved from "https://minecraft.wiki/w/Template:Inventory?oldid=3427406"

Navigation menu