Difference between revisions of "Itemstrings"

From Minetest Wiki
Jump to navigation Jump to search
m (changed the item code links to itemstring links)
m (Replaced the last two occurences of “item codes” with “itemstrings”)
Line 13: Line 13:
  
 
== Usages ==
 
== Usages ==
Item codes can be used as arguments used for the <code>/give</code> and <code>/giveme</code> [[Server commands|commands]].
+
Itemstrins can be used as arguments used for the <code>/give</code> and <code>/giveme</code> [[Server commands|commands]].
  
 
Example: <code>/give Alberto default:torch 1</code> — gives Alberto one torch
 
Example: <code>/give Alberto default:torch 1</code> — gives Alberto one torch
Line 20: Line 20:
 
=== Default (included in minetest_game) ===
 
=== Default (included in minetest_game) ===
  
See [[Itemstrings/default|this page]] for item codes of the “default” mod.
+
See [[Itemstrings/default|this page]] for the itemstrings of the “default” mod.
  
 
=== Bucket (included in minetest_game) ===
 
=== Bucket (included in minetest_game) ===

Revision as of 12:21, 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:

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

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

Usages

Itemstrins 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 the itemstrings 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 Air
  • ignore — used to represent nodes in unloaded areas

See also