Inventory: Difference between revisions
Jump to navigation
Jump to search
imported>Huin (→Windows: added Dispenser section) |
imported>Huin (→Windows: added additional information, including a table from the Protocol page) |
||
| Line 1: | Line 1: | ||
== Windows == | == Windows == | ||
Minecraft displays the player inventory differently, according to how the window was opened. Ranges of slot indices vary in meaning between different "windows". | Minecraft displays the player inventory differently, according to how the window was opened. Ranges of slot indices vary in meaning between different "windows". Minecraft indicates which window is being opened according to: | ||
Inventory Types | |||
{| class="wikitable" | |||
|- class="row0" | |||
! class="col0" | Inventory Type | |||
! class="col1" | Description | |||
|- class="row1" | |||
| class="col0" | 0 | |||
| class="col1" | Chest/Large chest | |||
|- class="row2" | |||
| class="col0" | 1 | |||
| class="col1" | Workbench | |||
|- class="row3" | |||
| class="col0" | 2 | |||
| class="col1" | Furnace | |||
|- class="row4" | |||
| class="col0" | 3 | |||
| class="col1" | Dispenser | |||
|} | |||
Each window type is described in the following sections. All slot index ranges are inclusive and reflect the indices observed in the Minecraft Beta protocol. Generally rectangular regions' slot indices start from the top-left corner, and increase from left to right, and then onto the next row. | |||
=== Inventory === | === Inventory === | ||
| Line 17: | Line 35: | ||
|- class="row2" | |- class="row2" | ||
| class="col0" | 1-4 | | class="col0" | 1-4 | ||
| class="col1" | crafting input (1 + x + 2 * y) | | class="col1" | (2x2) crafting input (1 + x + 2 * y) | ||
|- class="row3" | |- class="row3" | ||
| class="col0" | 5-8 | | class="col0" | 5-8 | ||
| Line 40: | Line 58: | ||
|- class="row2" | |- class="row2" | ||
| class="col0" | 1-9 | | class="col0" | 1-9 | ||
| class="col1" | crafting input (1 + x + 3 * y) | | class="col1" | (3x3) crafting input (1 + x + 3 * y) | ||
|- class="row3" | |- class="row3" | ||
| class="col0" | 10-36 | | class="col0" | 10-36 | ||
Revision as of 16:41, 28 April 2011
Windows
Minecraft displays the player inventory differently, according to how the window was opened. Ranges of slot indices vary in meaning between different "windows". Minecraft indicates which window is being opened according to:
Inventory Types
| Inventory Type | Description |
|---|---|
| 0 | Chest/Large chest |
| 1 | Workbench |
| 2 | Furnace |
| 3 | Dispenser |
Each window type is described in the following sections. All slot index ranges are inclusive and reflect the indices observed in the Minecraft Beta protocol. Generally rectangular regions' slot indices start from the top-left corner, and increase from left to right, and then onto the next row.
Inventory
| Slot range | Description |
|---|---|
| 0 | crafting output |
| 1-4 | (2x2) crafting input (1 + x + 2 * y) |
| 5-8 | armor (head, chest, legs, feet) |
| 9-35 | main inventory |
| 36-44 | held items |
Crafting window
| Slot range | Description |
|---|---|
| 0 | crafting output |
| 1-9 | (3x3) crafting input (1 + x + 3 * y) |
| 10-36 | main inventory |
| 37-45 | held items |
Chest
| Slot range | Description |
|---|---|
| 0-26 | chest |
| 27-53 | main inventory |
| 54-62 | held items |
Large chest
| Slot range | Description |
|---|---|
| 0-53 | chest |
| 54-80 | main inventory |
| 81-89 | held items |
Furnace
| Slot range | Description |
|---|---|
| 0 | above flame |
| 1 | fuel |
| 2 | output |
| 3-29 | main inventory |
| 30-38 | held items |
Dispenser
| Slot range | Description |
|---|---|
| 0-8 | 3x3 dispenser contents (x + 3 * y) |
| 9-35 | main inventory |
| 36-44 | held items |