Changes between Version 1 and Version 2 of olivine/dsl/types/item


Ignore:
Timestamp:
May 25, 2020 7:04:33 PM (4 years ago)
Author:
jonathan
Comment:

Moved qualified-reference specific rhetoric to its own wiki page

Legend:

Unmodified
Added
Removed
Modified
  • olivine/dsl/types/item

    v1 v2  
    11= Game Items =
    2 Visit [wiki:olivine/dsl/types/core core types] for information on primitive and core types such as `integer`.
     2**Important**: Visit [wiki:olivine/dsl/types/core core types] for information on primitive and core types such as `integer` and visit [wiki:olivine/dsl/qualref qualified references] for how to express item identification ''before'' you continue here.
    33
    4 An `item` expresses a named game item.  It is comprised of two parts, the resource group name and the sub-name.  The syntax takes one of the two forms: `item &group:name` or `item name` where ''group'' is the resource group name and ''name'' is the name of the item in that resource group.  As you may notice, the second form doesn't specify the group, that is because it is optional.  If the item is descriptive enough on it's own then Olivine will find it, however, if there is more than one item loaded with the same name (but exist in separate resource groups) then you would use the first syntax approach to be more definitive and mitigate ambiguity.
     4An `item` expresses a named game item using a qualified reference.  The syntax takes the form `item reference`.
    55
    6 Here is a simple example that expresses an item by name without a resource group, this will cause Olivine to go looking for it in all loaded resource groups:
     6== Examples ==
    77
    88{{{
    9    item &stone
    10 }}}
    11 
    12 Suppose there is another resource group that the `stone` item but you want the ''Minecraft'' one, here's how you express that:
    13 
    14 {{{
    15    item &minecraft:stone
     9   item &foo:potion\`awesome sauce`
    1610}}}
    1711