Item Mods

The item mods module allows modification of all items present on a map or created during the match. This can be used, for example, to make all gold swords unbreakable or give all items of a specific type a custom name.

ElementDescriptionValue/Children
The item mods node, containing all the individual modification rules.
Sub-elements
A single item modification rule.Rule Sub-Elements
Rule Sub-Elements
ElementDescriptionValue/Children
RequiredUniqueThe material or materials to modify.Match Sub-Elements
RequiredUniqueThe attributes to modify on the specified material(s).Item Meta
Match Sub-Elements
ElementDescriptionValue/Children
An individual material to match.Single Material Pattern
Match all materials.
Match all block type materials.

Examples

<item-mods>
<rule>
<match>
<material>Iron Sword</material>
</match>
<modify unbreakable="true">
<enchantment level="1">Knockback</enchantment>
</modify>
</rule>
</item-mods>
<item-mods>
<rule>
<match>
<material>Bow</material>
</match>
<modify show-enchantments="false" unbreakable="true">
<enchantment level="2">Infinity</enchantment>
</modify>
</rule>
</item-mods>

Item Meta

The following attributes and sub-elements can be used with the <modify> element to modify an item or block. While these are the same attributes as used in item kits the modify element does not currently support the projectile or grenade attributes.

Modify Sub-Elements
ElementDescriptionValue
This item's enchantments.Enchantments
A custom potion effect, only applies for potion items.Potion Effect
Custom attributes for this item.Attribute Modifiers
The materials that can be mined with the item.Can Destroy
Materials that the item can be placed on.Can Place On
Modify Attributes
AttributeDescriptionValueDefault
The item's display name.String
Custom lore string.String
Specify if this item is unbreakable, hides the durability bar in minecraft.true/falsefalse
Leather armor color as a hexadecimal color.
Only applies to leather armor items.
Hex Color
Potion type
Only applies to potion items.
Potion ID
Show enchantments in the item tooltip.true/falsetrue
Show attribute modifiers in the item tooltip.true/falsetrue
Show the unbreakable property in the item tooltip.true/falsetrue
Show the breakable block list in the item tooltip.true/falsetrue
Show the blocks the item can be placed on in the item tooltip.true/falsetrue
Show various other things in the item tooltip.true/falsetrue