Difference between revisions of "Itemstrings"

From Minetest Wiki
Jump to navigation Jump to search
m (Typo)
(Added the itemstrings of the other minetest_game mods.)
Line 6: Line 6:
 
  <mod_name>:<item_name>
 
  <mod_name>:<item_name>
 
Examples:
 
Examples:
*<code>default:torch</code> — a [[torch]]
+
*<code>default:torch</code> — a [[torch]] (from mod “default”)
*<code>default:dirt</code> — [[dirt]]
+
*<code>default:dirt</code> — [[dirt]] (from mod “default”)
*<code>farming:bread</code> — [[bread]]
+
*<code>farming:bread</code> — [[bread]] (from mod “default”)
 +
*<code>wool:orange</code> — orange [[wool]] (from mod “wool”)
 +
*<code>screwdriver:screwdriver</code> — [[screwdriver]] (from mod “screwdriver”)
  
 
There are itemstrings which don’t follow the syntax rules, see [[#Special itemstrings]].
 
There are itemstrings which don’t follow the syntax rules, see [[#Special itemstrings]].
Line 18: Line 20:
  
 
== Lists of itemstrings ==
 
== Lists of itemstrings ==
=== Default (included in minetest_game) ===
+
=== [[Minetest (game)|minetest_game]] ===
 +
==== default ====
 +
''See [[Itemstrings/default]].''
  
See [[Itemstrings/default|this page]] for the itemstrings of the “default” mod.
+
=== bones ===
 +
* [[Bones|bones]]
  
=== Bucket (included in minetest_game) ===
+
=== bucket ===
''Mod name: “bucket”''
 
==== Items ====
 
 
* [[Bucket|bucket]]
 
* [[Bucket|bucket]]
 
* [[Bucket|bucket_water]]
 
* [[Bucket|bucket_water]]
 
* [[Bucket|bucket_lava]]
 
* [[Bucket|bucket_lava]]
  
=== Wool (included in minetest_game) ===
+
=== doors ===
See [[Itemstrings/Wool|this page]] for itemstrings of the official version of the “wool” mod.
+
* [[Wooden Door|door_wood]]
 +
* [[Steel Door|door_steel]]
  
=== Mesecons ===
+
=== dye ===
See [[Itemstrings/mesecons|this page]] for itemstrings of the “mesecons” mod.
+
''See [[Itemstrings/dye]].''
  
=== More Blocks ===
+
=== fire ===
See [[Itemstrings/moreblocks|this page]] for itemstrings of the “moreblocks” mod.
+
* [[Fire|basic_flame]]
  
=== More Ores ===
+
=== farming ===
See [[Itemstrings/moreores|this page]] for itemstrings of the “moreores” mod.
+
''See [[Itemstrings/farming]].''
 +
 
 +
=== flowers ===
 +
* [[Flower|dandelion_white]]
 +
* [[Flower|dandelion_yellow]]
 +
* [[Flower|geranium]]
 +
* [[Flower|rose]]
 +
* [[Flower|tulip]]
 +
* [[Flower|viola]]
 +
 
 +
=== screwdriver ===
 +
* [[Screwdriver|screwdriver]]
 +
 
 +
=== stairs ===
 +
''See [[Itemstrings/stairs]].''
 +
 
 +
=== vessels ===
 +
* [[Glass bottle|glass_bottle]]
 +
* [[Drinking glass|drinking_glass]]
 +
* [[Steel bottle|steel_bottle]]
 +
* [[Glass fragments|glass_fragments]]
 +
 
 +
=== wool ===
 +
''See [[Itemstrings/Wool]].''
 +
 
 +
=== Other [[Game|games]] ===
 +
==== Mesecons ====
 +
''See [[Itemstrings/mesecons]].''
 +
 
 +
==== More Blocks ====
 +
''See [[Itemstrings/moreblocks]].''
 +
 
 +
==== More Ores ====
 +
''See [[Itemstrings/moreores]].''
  
 
=== Special itemstrings ===
 
=== Special itemstrings ===

Revision as of 09:20, 21 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 (from mod “default”)
  • default:dirtdirt (from mod “default”)
  • farming:breadbread (from mod “default”)
  • wool:orange — orange wool (from mod “wool”)
  • screwdriver:screwdriverscrewdriver (from mod “screwdriver”)

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

Usages

Itemstrings 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

minetest_game

default

See Itemstrings/default.

bones

bucket

doors

dye

See Itemstrings/dye.

fire

farming

See Itemstrings/farming.

flowers

screwdriver

stairs

See Itemstrings/stairs.

vessels

wool

See Itemstrings/Wool.

Other games

Mesecons

See Itemstrings/mesecons.

More Blocks

See Itemstrings/moreblocks.

More Ores

See Itemstrings/moreores.

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