Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
databases:items:overview [2019/07/01 11:44]
wahrheit [Breaking down the options]
databases:items:overview [2020/07/08 04:17] (current)
ashen Added NBT support information to page
Line 5: Line 5:
  
 Of the following options available for items, only //​internal_itemname//​ and //Id// are required. All other options/​attributes are completely optional. Of the following options available for items, only //​internal_itemname//​ and //Id// are required. All other options/​attributes are completely optional.
 +
 +You can make any number of files in the Items folder, and they can be named anything you like as long as the file ends in .yml.
 +
 <​code>​ <​code>​
 iternal_itemname:​ iternal_itemname:​
Line 10: Line 13:
   Data:   Data:
   Display:   Display:
 +  Model:
   Attributes:   Attributes:
   Amount:   Amount:
Line 51: Line 55:
       * **Display: 'Very Strong Sword'​**       * **Display: 'Very Strong Sword'​**
       * **Display: '&​eVery Strong Sword'​**       * **Display: '&​eVery Strong Sword'​**
 +
 +  * **Model: [a number]** //(Added in v4.7)//
 +      * Sets the CustomModelData tag on the item.
 +      * Only usable in 1.14+
  
   * **Attributes:​**   * **Attributes:​**
Line 103: Line 111:
     * This option is capeable of passing minecraft'​s 6 layer limit. However adding excessive amounts of layers may cause weird behaviour and will not be supported.     * This option is capeable of passing minecraft'​s 6 layer limit. However adding excessive amounts of layers may cause weird behaviour and will not be supported.
     * See [[:​databases:​items:​bannerlayers|Banner Layers]]     * See [[:​databases:​items:​bannerlayers|Banner Layers]]
 +
 +====NBT Support====
 +You can now specify NBT tags on items in the format:
 +  Item:
 +    Id: DIAMOND_SWORD
 +    NBT:
 +      Base:
 +        ATag: 20
 +        SomeOtherTag:​ something
 +      GemSlots:
 +        RedGem: 0
 +      '​Denizen NBT':
 +        somedenizentag:​ a_string
 +This allows cross-over with a lot of other plugins, or just for storing some custom information.
 +
 +For the more technically-inclined,​ anything under '​Base'​ will go under the item's base compound tag, and anything else will go under the corresponding key (or if no sub-items are defined, everything will go under the base tag). 
 +
 +If using with Denizen, all tags you want to use in Denizen must go under '​Denizen NBT' and must be lower-case to work in your Denizen scripts.
  
 ===== Examples ===== ===== Examples =====

databases/items/overview.1562003081.txt.gz · Last modified: 2020/06/30 21:13 (external edit)