-
Notifications
You must be signed in to change notification settings - Fork 9
Item types
Daniel Saukel edited this page Aug 12, 2018
·
7 revisions
Item types determine what kind of item an item is. Some item traits, like damage values or banner patterns, cannot be applied to all items. Using the respective item type allows you to use settings that are not available for the default type.
Key | Value | Function |
---|---|---|
categoryDamageModifiers | Map of category IDs / double attack damage modifiers | Allows you to modify the damage dealt to a category of mobs with this item. |
mobDamageModifiers | Map of mob IDs / double attack damage modifiers | Allows you to modify the damage dealt to a mob type with this item. |
Key | Value | Function |
---|---|---|
material | Item ID | Sets the item to use as a base |
name | String | Sets the display name. Color codes (e.g. &6) are supported |
lores | List of Strings | Adds lore lines to the item. CCs are supported |
enchantments | Map of enchantments / integer levels | Adds enchantments |
itemFlags | List of item flags | Adds item flags |
attributes | Map of attribute names and attribute data |
Key | Value | Function |
---|---|---|
patterns | Map of dye color / pattern type | Adds a colored banner pattern |
Key | Value | Function |
---|---|---|
storedEnchantments | Map of enchantments / integer levels | Adds stored enchantments like used by enchanted books |
Key | Value | Function |
---|---|---|
durability | Short | Sets a durability value. Not intended to be used to determine a pre 1.13 item type |
unbreakable | Boolean | Makes the item unbreakable if set to true |
Key | Value | Function |
---|---|---|
power | Integer | Sets the firework power |
effects | List of firework effects | Adds effects to the firework |
Key | Value | Function |
---|---|---|
skullOwner | UUID or String | Sets a skull owner whose skin will be used |
textureValue | Base64 | Sets a texture independently of the skull owner |
Wiki: © 2016-2020 Daniel Saukel and contributors, licensed under CC BY-SA