Difference between revisions of "Inventory"

From Minetest Wiki
Jump to navigation Jump to search
(+throw away)
Line 2: Line 2:
  
 
== Controls ==
 
== Controls ==
 +
 
You only use the mouse to take, drop and exchange items to move item stacks around.
 
You only use the mouse to take, drop and exchange items to move item stacks around.
  
 
=== Taking ===
 
=== Taking ===
 +
 
You can '''take''' items from an occupied slot if the cursor holds nothing.
 
You can '''take''' items from an occupied slot if the cursor holds nothing.
* <kbd>Left click</kbd>: Take entire item stack
+
* <kbd>Left click</kbd>: take entire item stack
* <kbd>Right click</kbd>: Take half from the item stack (rounding up if uneven)
+
* <kbd>Right click</kbd>: take half from the item stack (rounding up if uneven)
* <kbd>Middle click</kbd>: Take 10 items from the item stack
+
* <kbd>Middle click</kbd>: take 10 items from the item stack
  
 
=== Dropping ===
 
=== Dropping ===
 +
 
You can '''drop''' items onto a slot if the cursor holds 1 or more items and the slot is either empty or contains an item stack of the same item type.
 
You can '''drop''' items onto a slot if the cursor holds 1 or more items and the slot is either empty or contains an item stack of the same item type.
* <kbd>Left click</kbd>: Drop entire item stack
+
* <kbd>Left click</kbd>: drop entire item stack
* <kbd>Right click</kbd>: Drop 1 item of the item stack
+
* <kbd>Right click</kbd>: drop 1 item of the item stack
* <kbd>Middle click</kbd>: Drop 10 items of the item stack
+
* <kbd>Middle click</kbd>: drop 10 items of the item stack
  
 
=== Exchanging ===
 
=== Exchanging ===
 +
 
You can '''exchange''' items if the cursor holds 1 or more items and the destination slot is occupied by a different item type.
 
You can '''exchange''' items if the cursor holds 1 or more items and the destination slot is occupied by a different item type.
* <kbd>Left</kbd>, <kbd>middle</kbd> and <kbd>right click</kbd>: Exchange item stacks from cursor and from selected item slot
+
* <kbd>Left</kbd>, <kbd>middle</kbd> and <kbd>right click</kbd>: exchange item stacks from cursor and from selected item slot
  
 
=== Throwing away ===
 
=== Throwing away ===
 +
 
If you hold an item stack and click with it somewhere outside the menu, the item stack gets thrown away into the environment.
 
If you hold an item stack and click with it somewhere outside the menu, the item stack gets thrown away into the environment.
  
 
== Inventories in the [[vanilla Minetest game]] ==
 
== Inventories in the [[vanilla Minetest game]] ==
 +
 
=== Player inventory ===
 
=== Player inventory ===
[[File:Inventory.png|thumb|250px|The player inventory]]
+
 
 +
[[File:Inventory.png|thumb|250px|The player inventory.]]
 
The player inventory is in the [[inventory menu]] and has a size of 8 rows and 4 lines, providing 32 item slots of storage. It is always available. The top line makes the [[hotbar]].
 
The player inventory is in the [[inventory menu]] and has a size of 8 rows and 4 lines, providing 32 item slots of storage. It is always available. The top line makes the [[hotbar]].
  
 
=== [[Chest]] and [[Locked Chest]] ===
 
=== [[Chest]] and [[Locked Chest]] ===
Chests and locked chests both provide 8×4 inventories.
+
 
 +
Chests and locked chests both provide 8 × 4 inventories.
  
 
=== [[Bones]] ===
 
=== [[Bones]] ===
When a [[player]] dies, a bones block is generated. It has an inventory which contains all the items of the player who died. Notably, in a bones’ inventory nothing can actively be stored inside.
+
 
 +
When a [[player]] dies, a bones block is generated. It has an inventory which contains all the items of the player who died. By default, it publishes after 20 minutes, which means items can be taken by any players and can be dug by other players if it is empty.
  
 
=== Other inventories ===
 
=== Other inventories ===
Other inventories are the [[Crafting#Crafting grid and output slot|crafting grid]] and in the [[furnace]]. The crafting grid has the same properties of an inventory but you can also [[Crafting|craft]] new items with it. You keep your items if you store them in the crafting grid and close the inventory menu. Even the fuel and smelting slots of the furnace are in fact just special cases of inventories which are, in this case, 1×1 inventories.
+
 
 +
Other inventories are the [[Crafting#Crafting grid and output slot|crafting grid]] and in the [[furnace]]. The crafting grid has the same properties of an inventory but you can also [[Crafting|craft]] new items with it. You keep your items if you store them in the crafting grid and close the inventory menu. Even the fuel and smelting slots of the furnace are in fact just special cases of inventories which are, in this case, 1×1 inventories, even though the latter is limited to “fuel”-type items.
  
 
== Inventories in other [[game|games]] ==
 
== Inventories in other [[game|games]] ==
Other games/mods can completely customize the inventory menu to change the inventories there and also add inventories basicly whereever the modder wants to. In fact, the vanilla Minetest game is just one possibility to use inventories.
+
 
 +
Other [[mods]] or games can completely customize the inventory menu to change the inventories there and also add inventories basicly whereever the modder wants to. In fact, the vanilla Minetest game is just one possibility to use inventories.
  
 
For the purpose of this wiki, an ordinary inventory in the inventory menu is refered to as “player inventory”.
 
For the purpose of this wiki, an ordinary inventory in the inventory menu is refered to as “player inventory”.
 +
  
 
[[Category:GUI]]
 
[[Category:GUI]]

Revision as of 17:11, 19 May 2014

An inventory is primarily used to store item stacks. There are other uses, such as crafting. An inventory consists of a rectangular grid of item slots. Each item slot can be either empty or hold one item stack. Item stacks can be moved freely between slot and slot, given that the destination slot is either empty or of the same item type.

Controls

You only use the mouse to take, drop and exchange items to move item stacks around.

Taking

You can take items from an occupied slot if the cursor holds nothing.

  • Left click: take entire item stack
  • Right click: take half from the item stack (rounding up if uneven)
  • Middle click: take 10 items from the item stack

Dropping

You can drop items onto a slot if the cursor holds 1 or more items and the slot is either empty or contains an item stack of the same item type.

  • Left click: drop entire item stack
  • Right click: drop 1 item of the item stack
  • Middle click: drop 10 items of the item stack

Exchanging

You can exchange items if the cursor holds 1 or more items and the destination slot is occupied by a different item type.

  • Left, middle and right click: exchange item stacks from cursor and from selected item slot

Throwing away

If you hold an item stack and click with it somewhere outside the menu, the item stack gets thrown away into the environment.

Inventories in the vanilla Minetest game

Player inventory

The player inventory.

The player inventory is in the inventory menu and has a size of 8 rows and 4 lines, providing 32 item slots of storage. It is always available. The top line makes the hotbar.

Chest and Locked Chest

Chests and locked chests both provide 8 × 4 inventories.

Bones

When a player dies, a bones block is generated. It has an inventory which contains all the items of the player who died. By default, it publishes after 20 minutes, which means items can be taken by any players and can be dug by other players if it is empty.

Other inventories

Other inventories are the crafting grid and in the furnace. The crafting grid has the same properties of an inventory but you can also craft new items with it. You keep your items if you store them in the crafting grid and close the inventory menu. Even the fuel and smelting slots of the furnace are in fact just special cases of inventories which are, in this case, 1×1 inventories, even though the latter is limited to “fuel”-type items.

Inventories in other games

Other mods or games can completely customize the inventory menu to change the inventories there and also add inventories basicly whereever the modder wants to. In fact, the vanilla Minetest game is just one possibility to use inventories.

For the purpose of this wiki, an ordinary inventory in the inventory menu is refered to as “player inventory”.