Skip to content

Item types

Daniel Saukel edited this page Aug 12, 2018 · 7 revisions

What do item types do?

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.

Settings that do not depend on item types

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.

Custom item types

DEFAULT (CustomItem)

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

BANNER (CustomBanner)

Key Value Function
patterns Map of dye color / pattern type Adds a colored banner pattern

ENCHANTED_BOOK (CustomEnchantedBook)

Key Value Function
storedEnchantments Map of enchantments / integer levels Adds stored enchantments like used by enchanted books

EQUIPMENT (CustomEquipment)

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

FIREWORK (CustomFirework)

Key Value Function
power Integer Sets the firework power
effects List of firework effects Adds effects to the firework

HEAD (CustomHead)

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