🎨Customize

Match rules

The plugin uses match rules in order to apply the customization only for the items you want.

Material matching - wildcard

You can use the material_wildcards rule to match items by their material but if they start-end with a word.

For example this matches any item of which its material name ends with _SWORD.

  custom1:
    rules:
      material_wildcards:
        - "*_SWORD"
    changes:
      rename: "Amogus"
      remove_enchants: 
      - DAMAGE_ALL:9
      - PROTECTION_FIRE:9

For example this matches any item of which its material name starts with DIAMOND_*.

  custom1:
    rules:
      material_wildcards:
        - "DIAMOND_*"
    changes:
      rename: "Amogus"
      remove_enchants: 
      - DAMAGE_ALL:9
      - PROTECTION_FIRE:9

Material matching - precise material

You can use the material rule to match items by their material.

For example this matches only STONE items.

Material matching - regex

You can use material_regex to match material name based on a regex expression.

For example this:

Vanilla matching

The special property makes the plugin recognize vanilla items. A vanilla item is an item which has no customized lore, no enchants and has no custom display name (note: items renamed with the anvil will be considered vanilla anyway).

NBT matching

You can match NBT attributes. In this example I match the ItemsAdder plugin NBT tag.

Rarity

You can match the vanilla rarity attribute.

Placeable

Matches if the item is a placeable (for example a block).

Placeable hardness

Matches if the item has hardness greater than X, in this example 0. The {hardness} text is a special placeholder and will be automatically replaced with the hardness value in any change rule.

Edible

Matches if the item is a food.

Smelted

Matches if the item was smelted in order to be crafted, for example Iron Ingot.

Changes

The plugin allows you to customize items using some customization properties. These customizations are triggered only if the previous matching rules are satisfied for a particular item.

Here is a list of all possible changes for an item and all their properties.

Last updated