🔍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: trueMatch Item Rule List
None
No item will match, very useful for apply items.
match-item: # or black-item:
none: trueNOT
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
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.
For list of supported item plugins, please see here.
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
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 here.
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 Slot
Matches an item whose EnchantmentSlots slot amount is at least the configured number.
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.
This is just mean vanilla item's ratity, NOT means ratity/tier from custom plugins.
NBT String
Require NBTAPI, download it here.
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 here.
Similar to NBT String, but should has comparison symbols.
Comparsion symbols support:
>=
<=
>
<
==
Last updated