Difference between revisions of "Itemstrings"

From Minetest Wiki
Jump to navigation Jump to search
(→‎Items: added links)
(Restructured page; Removed the outdated wool mods and replaced them with the official one; explained the syntax; added obscure itemstrings “air” and “ignore”)
Line 1: Line 1:
These are the default arguments used for the <code>/give</code> and <code>/giveme</code> commands. Item codes are case sensitive.
+
'''Item codes''' are the internal names for items, blocks, nodes (everything which can be stored in an [[inventory]]).
  
Example: <code>/give Name torch 1 </code>
 
  
== Default ==
+
== Syntax ==
 +
An usual item code consists of a the name of the [[Mods|mod]] where the item originates from followed by a “:” followed by an item name. All item codes are case sensitive.
 +
<mod_name>:<item_name>
 +
Examples:
 +
*<code>default:torch</code> — a [[torch]]
 +
*<code>default:dirt</code> — [[dirt]]
 +
*<code>farming:bread</code> — [[bread]]
  
See [[Item_Codes/default|this page]] for item codes of the "default" mod.
+
There are item codes which don’t follow the syntax rules, see [[#Special item codes]].
  
== Bucket (included in "minetest_game" repository) ==
+
== Usages ==
 +
Item codes can be used as arguments used for the <code>/give</code> and <code>/giveme</code> [[Server commands|commands]].
  
''Prefix: bucket:''
+
Example: <code>/give Alberto default:torch 1</code> — gives Alberto one torch
  
=== Items ===
+
== Lists of item codes ==
 +
=== Default (included in minetest_game) ===
  
 +
See [[Item_Codes/default|this page]] for item codes of the “default” mod.
 +
 +
=== Bucket (included in minetest_game) ===
 +
''Mod name: “bucket”''
 +
==== Items ====
 
* [[Bucket|bucket]]
 
* [[Bucket|bucket]]
 
* [[Bucket|bucket_water]]
 
* [[Bucket|bucket_water]]
 
* [[Bucket|bucket_lava]]
 
* [[Bucket|bucket_lava]]
  
== Mesecons ==
+
=== Wool (included in minetest_game) ===
 
+
See [[Item_Codes/Wool|this page]] for item codes of the official version of the “wool” mod.
See [[Item_Codes/mesecons|this page]] for item codes of the "mesecons" mod.
 
 
 
== More Blocks ==
 
 
 
See [[Item_Codes/moreblocks|this page]] for item codes of the "moreblocks" mod.
 
 
 
== More Ores ==
 
 
 
See [[Item_Codes/moreores|this page]] for item codes of the "moreores" mod.
 
  
== Wool 16 ==
+
=== Mesecons ===
 +
See [[Item_Codes/mesecons|this page]] for item codes of the “mesecons” mod.
  
See [[Item_Codes/Wool 16|this page]] for item codes of the 16-color version of the "Wool" mod.
+
=== More Blocks ===
 +
See [[Item_Codes/moreblocks|this page]] for item codes of the “moreblocks” mod.
  
== Wool 32 ==
+
=== More Ores ===
 +
See [[Item_Codes/moreores|this page]] for item codes of the “moreores” mod.
  
See [[Item_Codes/Wool 32|this page]] for item codes of the 32-color version of the "Wool" mod.
+
=== Special item codes ===
 +
There are item codes which don’t follow the usual syntax rules. These item codes are always available, regardless of the activated [[mods]]:
 +
* <code>air</code> — used for [[Air]]
 +
* <code>ignore</code> — used to represent nodes in unloaded areas
  
 
== See also ==
 
== See also ==

Revision as of 12:04, 20 October 2013

Item codes are the internal names for items, blocks, nodes (everything which can be stored in an inventory).


Syntax

An usual item code consists of a the name of the mod where the item originates from followed by a “:” followed by an item name. All item codes are case sensitive.

<mod_name>:<item_name>

Examples:

  • default:torch — a torch
  • default:dirtdirt
  • farming:breadbread

There are item codes which don’t follow the syntax rules, see #Special item codes.

Usages

Item codes can be used as arguments used for the /give and /giveme commands.

Example: /give Alberto default:torch 1 — gives Alberto one torch

Lists of item codes

Default (included in minetest_game)

See this page for item codes of the “default” mod.

Bucket (included in minetest_game)

Mod name: “bucket”

Items

Wool (included in minetest_game)

See this page for item codes of the official version of the “wool” mod.

Mesecons

See this page for item codes of the “mesecons” mod.

More Blocks

See this page for item codes of the “moreblocks” mod.

More Ores

See this page for item codes of the “moreores” mod.

Special item codes

There are item codes which don’t follow the usual syntax rules. These item codes are always available, regardless of the activated mods:

  • air — used for Air
  • ignore — used to represent nodes in unloaded areas

See also