Difference between revisions of "Itemstrings"
Jump to navigation
Jump to search
General3214 (talk | contribs) (Created page with "These are the default arguments used for the <code>/give</code> and <code>/giveme</code> commands. Item codes are case sensitive. Example: <code>/give Name torch 1 </code> =...") |
(→Special itemstrings: There's no used for. There's only is.) |
||
(24 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Languages|nocat=1}} | |
− | + | '''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 [[Mods|mod]] where the item originates from followed by a “:” followed by an item name. All itemstrings are case sensitive. | ||
+ | <mod_name>:<item_name> | ||
+ | Examples: | ||
+ | *<code>default:torch</code> — a [[torch]] (from mod “default”) | ||
+ | *<code>default:dirt</code> — [[dirt]] (from mod “default”) | ||
+ | *<code>farming:bread</code> — [[bread]] (from mod “farming”) | ||
+ | *<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]]. | |
− | == | + | == Usages == |
+ | Itemstrings can be used as arguments used for the <code>/give</code> and <code>/giveme</code> [[Server commands|commands]]. | ||
− | + | Example: <code>/giveme default:torch</code>—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]]: | ||
+ | * [[Air|<code>air</code>]] | ||
+ | * [[Ignore|<code>ignore</code>]] | ||
− | + | == See also == | |
− | |||
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | See | ||
− | |||
− | |||
*[[Items]] | *[[Items]] | ||
*[[Blocks]] | *[[Blocks]] | ||
− | [[Category: | + | [[Category:Engine]] |
Latest revision as of 18:25, 9 August 2023
Language: | English • Deutsch • français • italiano • Bahasa Melayu |
---|
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:dirt
— dirt (from mod “default”)farming:bread
— bread (from mod “farming”)wool:orange
— orange wool (from mod “wool”)screwdriver:screwdriver
— screwdriver (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: