Difference between revisions of "Itemstrings/it"

From Minetest Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
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]]).
 
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 ==
+
== Sintassi ==
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.
+
Una comune stringa oggetto consiste del nome del [[Mods|mod]] da cui ha origine, seguita da ":", seguiti da un nome oggetto.
  <mod_name>:<item_name>
+
Tutte le stringhe oggetto fanno distinzione tra minuscole e maiuscole.
 +
  <nome_mod>:<nome_oggetto>
 
Examples:
 
Examples:
*<code>default:torch</code> — a [[torch]] (from mod “default”)
+
*<code>default:torch</code> - una [[torch|torcia]] (dal mod "default")
*<code>default:dirt</code> [[dirt]] (from mod “default”)
+
*<code>default:dirt</code> - [[dirt|terra]] (dal mod "default")
*<code>farming:bread</code> [[bread]] (from mod “farming”)
+
*<code>farming:bread</code> - [[bread|pane]] (dal mod "farming")
*<code>wool:orange</code> — orange [[wool]] (from mod “wool”)
+
*<code>wool:orange</code> - [[wool|lana]] arancione (dal mod "wool")
*<code>screwdriver:screwdriver</code> [[screwdriver]] (from mod “screwdriver”)
+
*<code>screwdriver:screwdriver</code> - [[screwdriver|cacciavite]] (dal mod "screwdriver")
  
There are itemstrings which don’t follow the syntax rules, see [[#Special itemstrings]].
+
Ci sono stringhe oggetto che non seguono le regole di sintassi, si veda [[#Special itemstrings]].
  
 
== Usages ==
 
== Usages ==

Revision as of 16:16, 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).

Sintassi

Una comune stringa oggetto consiste del nome del mod da cui ha origine, seguita da ":", seguiti da un nome oggetto. Tutte le stringhe oggetto fanno distinzione tra minuscole e maiuscole.

<nome_mod>:<nome_oggetto>

Examples:

  • default:torch - una torcia (dal mod "default")
  • default:dirt - terra (dal mod "default")
  • farming:bread - pane (dal mod "farming")
  • wool:orange - lana arancione (dal mod "wool")
  • screwdriver:screwdriver - cacciavite (dal mod "screwdriver")

Ci sono stringhe oggetto che non seguono le regole di sintassi, si veda #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