Difference between revisions of "Itemstrings"

From Minetest Wiki
Jump to navigation Jump to search
(outdated)
(get page up to date)
Line 1: Line 1:
{{outdated}}
 
 
 
'''Itemstrings''' are the internal names for items, blocks, nodes (everything which can be stored in an [[inventory]]).
 
'''Itemstrings''' are the internal names for items, blocks, nodes (everything which can be stored in an [[inventory]]).
 
  
 
== Syntax ==
 
== Syntax ==
Line 21: Line 18:
 
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 itemstrings ==
+
== Special itemstrings ==
=== [[Subgames/Minetest Game|Minetest Game]] ===
 
==== default ====
 
''See [[Itemstrings/default]].''
 
 
 
==== bones ====
 
* [[Bones|bones]]
 
 
 
==== bucket ====
 
* [[Bucket|bucket]]
 
* [[Bucket|bucket_water]]
 
* [[Bucket|bucket_lava]]
 
 
 
==== doors ====
 
* [[Wooden Door|door_wood]]
 
* [[Steel Door|door_steel]]
 
* [[Glass Door|door_glass]]
 
* [[Obsidian Glass Door|door_obsidian_glass]]
 
* [[Trapdoor|trapdoor]]
 
 
 
==== dye ====
 
''See [[Itemstrings/dye]].''
 
 
 
==== fire ====
 
* [[Fire|basic_flame]]
 
 
 
==== farming ====
 
''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]].''
 
 
 
==== tnt ====
 
* [[TNT|tnt]]
 
* tnt_burning
 
* [[Gun Powder|gunpowder]]
 
* gunpowder_burning
 
 
 
==== vessels ====
 
* [[Glass bottle|glass_bottle]]
 
* [[Drinking glass|drinking_glass]]
 
* [[Steel bottle|steel_bottle]]
 
* [[Glass fragments|glass_fragments]]
 
 
 
==== wool ====
 
''See [[Itemstrings/wool]].''
 
 
 
==== xpanes ====
 
* [[Iron bar|bar]]
 
* [[Glass Pane|pane]]
 
 
 
=== Other [[Game|games]] ===
 
==== Mesecons ====
 
''See [[Itemstrings/mesecons]].''
 
 
 
==== More Blocks ====
 
''See [[Itemstrings/moreblocks]].''
 
 
 
==== More Ores ====
 
''See [[Itemstrings/moreores]].''
 
 
 
=== Special itemstrings ===
 
 
There are itemstrings which do not follow the usual syntax rules. These itemstrings are always available, regardless of the activated [[mods]]:
 
There are itemstrings which do not 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]]

Revision as of 17:18, 31 January 2016

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 “farming”)
  • 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

Special itemstrings

There are itemstrings which do not 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. Unlike air, it is opaque and walkable. No fall damage is received for falling on it. If a player or a mod attempts placing it, an error message will be shown and no node will be placed.

See also