Difference between revisions of "Itemstrings"
m (Wuzzy moved page Item Codes to Itemstrings: Because the official documentation and Minetest itself calls them “itemstrings”, too.) |
(renamed “item code” to “itemstring”) |
||
Line 1: | Line 1: | ||
− | ''' | + | '''Itemstrings''' are the internal names for items, blocks, nodes (everything which can be stored in an [[inventory]]). |
== Syntax == | == Syntax == | ||
− | An usual | + | An usual itemstring consists of a the name of the [[Mods|mod]] where the item originates from followed by a “:” followed by an item name. All itemstrings are case sensitive. |
<mod_name>:<item_name> | <mod_name>:<item_name> | ||
Examples: | Examples: | ||
Line 10: | Line 10: | ||
*<code>farming:bread</code> — [[bread]] | *<code>farming:bread</code> — [[bread]] | ||
− | There are | + | There are itemstrings which don’t follow the syntax rules, see [[#Special item codes]]. |
== Usages == | == Usages == | ||
Line 17: | Line 17: | ||
Example: <code>/give Alberto default:torch 1</code> — gives Alberto one torch | Example: <code>/give Alberto default:torch 1</code> — gives Alberto one torch | ||
− | == Lists of | + | == Lists of itemstrings == |
=== Default (included in minetest_game) === | === Default (included in minetest_game) === | ||
Line 30: | Line 30: | ||
=== Wool (included in minetest_game) === | === Wool (included in minetest_game) === | ||
− | See [[Item_Codes/Wool|this page]] for | + | See [[Item_Codes/Wool|this page]] for itemstrings of the official version of the “wool” mod. |
=== Mesecons === | === Mesecons === | ||
− | See [[Item_Codes/mesecons|this page]] for | + | See [[Item_Codes/mesecons|this page]] for itemstrings of the “mesecons” mod. |
=== More Blocks === | === More Blocks === | ||
− | See [[Item_Codes/moreblocks|this page]] for | + | See [[Item_Codes/moreblocks|this page]] for itemstrings of the “moreblocks” mod. |
=== More Ores === | === More Ores === | ||
− | See [[Item_Codes/moreores|this page]] for | + | See [[Item_Codes/moreores|this page]] for itemstrings of the “moreores” mod. |
− | === Special | + | === Special itemstrings === |
− | There are | + | There are itemstrings which don’t follow the usual syntax rules. These itemstrings are always available, regardless of the activated [[mods]]: |
* <code>air</code> — used for [[Air]] | * <code>air</code> — used for [[Air]] | ||
* <code>ignore</code> — used to represent nodes in unloaded areas | * <code>ignore</code> — used to represent nodes in unloaded areas |
Revision as of 12:07, 20 October 2013
Itemstrings are the internal names for items, blocks, nodes (everything which can be stored in an inventory).
Syntax
An usual itemstring consists of a the name of the mod where the item originates from followed by a “:” followed by an item name. All itemstrings are case sensitive.
<mod_name>:<item_name>
Examples:
There are itemstrings 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 itemstrings
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 itemstrings of the official version of the “wool” mod.
Mesecons
See this page for itemstrings of the “mesecons” mod.
More Blocks
See this page for itemstrings of the “moreblocks” mod.
More Ores
See this page for itemstrings of the “moreores” mod.
Special itemstrings
There are itemstrings which don’t follow the usual syntax rules. These itemstrings are always available, regardless of the activated mods:
air
— used for Airignore
— used to represent nodes in unloaded areas