匹配规则(match-rule)

Items

match-item:
  # 输入物品ID,支持第三方插件的ID。
  items:
    - 'diamond_sword'
    - 'superior_sword'
  use-tier-identify: true

对于MMOItems,还有一个 use-tier-identify 选项可用,它代表是使用物品ID还是物品品质,如果改为true,那么你可以在这里使用RARE等品质ID而不是以前的物品ID。

Has name

只有拥有自定义显示名称的物品才会匹配。

match-item:
  has-name: true

Has lore

是否只有拥有Lore的物品才会匹配。

match-item:
  has-lore: true

Contains Name/Contains Lore

是否自定义显示名称或者Lore中有指定内容的物品匹配

match-item:
  contains-lore:
    - 'test1'
  contains-name:
    - 'test1'

Has Enchants

是否有附魔

match-item:
  has-enchants:
    - 'POWER'

Contains NBT - 付费

需要你的服务器安装 NBTAPI 插件,点击 下载。

仅付费版本的 MythicChanger 提供此规则。

检测物品是否含有指定 NBT。使用 ;; 区分 NBT 键值的上下级关系。

match-item:
  has-nbt: 
    - 'PublicBukkitValues;;mythicchanger:apply_item_id'

NBT String - 付费

需要你的服务器安装 NBTAPI 插件,点击 下载。

仅付费版本的 MythicChanger 提供此规则。

指定 NBT 的类似必须是 String 类型。

要求物品指定 NBT 的值必须为指定的值。使用 ;; 区分 NBT 键值的上下级关系。最后一个 ;; 符号后接着要求的值。

match-item:
  # 要求这个NBT值为A。
  nbt-string:
    - 'PublicBukkitValues;;mythicchanger:apply_item_id;;A'

NBT Int/NBT Double/NBT Byte - 付费

与 NBT String 类似,但是多了比较符号。

比较符号支持:

  • >=

  • <=

  • >

  • <

  • ==

match-item:
  nbt-double:
    - 'PublicBukkitValues;;mythicchanger:test;;>=;;5' 

Add NBT - 付费

需要你的服务器安装 NBTAPI 插件,点击 下载。

仅付费版本的 MythicChanger 提供此规则。

支持 add-nbt-string, add-nbt-int, add-nbt-double, add-nbt-byte 作为规则ID。

使用 ;; 区分 NBT 键值的上下级关系。最后一个 ;; 符号后设置你想要的值。

real-changes:
  add-nbt-string:
    # Key;;Value
    - 'test;;t'

Last updated