🔍Match Item Format

An example of match item format:

  items:
    - 'diamond_sword'
  has-name: true
  has-lore: true
  contains-lore:
    - 'test'
  contains-name:
    - 'test'

By default, all Match Rules need to be met, and you can also use the ANY Match Rule to avoid this. These are all clearly introduced below.

  any:
    material:
      - 'iron_sword'
    has-lore: true

Match Item Rule List

None

No item will match, very useful for apply items.

match-item: # or black-item:
  none: true

NOT

If item didn't meet the match rule you set in NOT section, we will consider this rule as meet the rule.

ANY

If item meet any of those match item rules, we will consider it meet the rule.

ANY Of

If item meet any of those match item rule GROUPS, we will consider it meet the rule.

Items

circle-info

Type item ID or vanilla material ID only, no item type.

For MMOItems: Please note that the item ID needs to be capitalized.

For ItemsAdder: Namespace is required, like namespace_test:item_id_here.

For MMOItems and EcoItems plugin, there is also a use-tier-identity option available in config.yml file, which represents whether to use item ID or item tier. If changed to true, you can use tier IDs such as RARE here instead of the previous item ID.

Material

Require item material must be the value of this list. This is very similar to items rule, but this rule will only use vanilla item material type.

Material Tag

Supports item tag or block tag.

Contains Name/Contains Lore

circle-info

You shoud not put color code here if you enabled ignore-color-code option at config.yml file.

Contains Enchants/Stored Enchants

Similar to has-enchants, but require the enchantment level must be greater than the value you set.

Contains specified levels enchants/stored Enchants

If you want to make only specified enchantment level take effect, you can use int list at here. For example, I want to make only item has Power level 1 enchantment match, then you should set this section like this:

Min Enchants Amount

The item must has at least 5 enchantments in this example.

Contains Enchants Amount

This means item must has 3 or 5 enchantments in this example, if the item has 4 enchantments or other number of enchantments, it will not being matched.

Contains NBT

Require NBTAPI, download it herearrow-up-right.

Use ;; distinguish key value hierarchy.

Has name

Whether only items with custom display names will match.

Has lore

Whether only items with lores will match.

Has Any Enchants

Has Enchants

Has Stored Enchants

Enchantable

This item can be enchanted by any of those enchantments.

Rarity (1.20.5+)

Require item must have specified rarity. Rarity require you extra set in item, by default all items don't have rarity, for item don't have custom rarity, plugin will use "NONE" as result.

circle-exclamation

NBT String

Require NBTAPI, download it herearrow-up-right.

Require specifed NBT type must be STRING.

Use ;; distinguish key value hierarchy.

The value after the last ;; symbol represents the required NBT value.

NBT Int/NBT Double/NBT Byte

Require NBTAPI, download it herearrow-up-right.

Similar to NBT String, but should has comparison symbols.

Comparsion symbols support:

  • >=

  • <=

  • >

  • <

  • ==

Last updated