Difference between revisions of "Itemstrings/it"

From Minetest Wiki
Jump to navigation Jump to search
(Created page with "{{languages}} '''Itemstrings''' are the internal names for items, blocks, nodes (everything which can be stored in an inventory). == Syntax == An usual itemstring consis...")
 
Line 1: Line 1:
 
{{languages}}
 
{{languages}}
  
'''Itemstrings''' are the internal names for items, blocks, nodes (everything which can be stored in an [[inventory]]).
+
Le '''stringhe oggetto''' ("itemstrings" in Inglese, NdT) sono i nomi interni per oggetti, blocchi, nodi (tutto ciò che può essere immagazzinato in un [[inventory|inventario]]).
  
 
== Syntax ==
 
== Syntax ==

Revision as of 16:12, 21 October 2019

Languages Lingua: English • Deutsch • français • italiano • Bahasa Melayu

Le stringhe oggetto ("itemstrings" in Inglese, NdT) sono i nomi interni per oggetti, blocchi, nodi (tutto ciò che può essere immagazzinato in un inventario).

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: /giveme default:torch—give yourself a torch

Special itemstrings

There are itemstrings which do not follow the usual syntax rules. These itemstrings are always available, regardless of the activated mods:

See also