Template:MC/Inventory/Old/doc
More actions
Template:Documentation header Template:Deprecated This template is deprecated. For chest-like interfaces, use Template:Tl. For rest, use the new Template:Tl. This template serves historical purporses and temporarily the option to load anvil and legacy smithing table interfaces, which have not been converted yet
Note: this template should only be used if you want to show an Inventory, or a recipe in an open container. If you only want to show a recipe, use its respective template, e.g. {{Furnace}}
General usage
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 11 different values this property can have, as detailed below. Click on a container type to learn more about it.
|
|
| title | The custom title to show on the GUI | the default title of the GUI |
| scale | The magnification level (size) of the resulting element (doesn't work in Firefox or on Android) | 1 |
| inventory | Whether or not the player inventory is to be shown ("no" means hidden, unhidden otherwise) | yes |
| 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 | |
Common types
Survival
The survival type configuration displays an inventory in survival mode.
| 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 | #000000 |
| player | The image of the player avatar preview area, must be 98 × 140 pixels | Steve inventory.png |
| recipebook | Recipebook button item | Recipe 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. | |
Generic
The generic type configuration displays a generic container.
| Parameters | ||
|---|---|---|
| Parameter | Function | Default value |
| rows | The number of rows to show (max is 16). | 1 |
| 0 – 143 | Available item slots. | |
Other types
Chest
The chest and large-chest type configuration displays a chest GUI.
- On a normal chest, slots
C0 – C26are available. - On a large chest,
C27 – C53are also available.
| 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 | |
Furnace
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 | |
| recipebook | Recipebook button item | Recipe Book |
Anvil
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
Template:Update
The smithing-table type configuration displays a 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 |
Dispenser
The dispenser type configuration displays an opened dispenser's GUI.
| 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 | |
Hopper
The hopper type configuration displays an opened hopper's GUI.
| Parameters | ||
|---|---|---|
| Parameter | Function | Default value |
| H0 – H4 | Hopper item slots | |
Crafting Table
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 | |
| recipebook | Recipebook button item | Recipe Book |
Brewing Stand
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 |
Examples
Survival inventory
{{Inventory/Old
|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
{{Inventory/Old
|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
Large chest
{{Inventory/Old
|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
Crafting table
{{Inventory/Old
|type=crafting-table
|recipebook=Portfolio
|A1= |B1=Blaze Powder |C1=
|A2= |B2=Coal;Charcoal |C2=
|A3= |B3=Gunpowder |C3=
|Output=Fire Charge,3
}}
- Result
Anvil
{{Inventory/Old
|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
Smithing Table
{{Inventory/Old
|type=smithing-table
|Input1=Diamond Sword
|Input2=Netherite Ingot
|Output=Netherite Sword
|crossed=true
}}
- Result
Dispenser
{{Inventory/Old
|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
Hopper
{{Inventory/Old
|type=hopper
|H0=Diamond,2
|H1=Wooden Shovel
|H2=Wooden Shovel
|H3=Wooden Shovel
|H4=Wooden Shovel
|0=Dirt,2
}}
- Result
Brewing stand
{{Inventory/Old
|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
Generic
{{Inventory/Old
|type=generic
|title=Small Box of Stuff
|rows=2
|0=Stick,4
|Oak Log
|Spruce Log
|11=Netherite Scrap
|16=Beetroot
|17=Carrot
}}
- Result
See also
es:Plantilla:Inventario/doc it:Template:Inventario/doc ja:テンプレート:Inventory/doc pt:Predefinição:Inventário/Antigo/doc uk:Шаблон:Інвентар/док