Differences

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

Link to this comparison view

Both sides previous revision Previous revision
databases:items:overview [2020/06/30 21:13]
127.0.0.1 external edit
databases:items:overview [2020/07/08 04:17] (current)
ashen Added NBT support information to page
Line 111: 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.1593573181.txt.gz · Last modified: 2020/06/30 21:13 by 127.0.0.1