Skip to content

插件配置

施工中...

配置

参数说明参数类型默认值
type触发器类型string-
priority优先级stringnormal
condition前置条件list-
position位置条件string-
action动作list-
rules动作规则map-
skillMythicMobs 技能list-
entry变量库map-
drop掉落物list-
drop-rules掉落物规则map-
drop-owner掉落物所有者限制booleanfalse
drop-owner-timeout掉落物所有者限制时效number-
auto-pickup自动拾取booleanfalse
cooldown冷却时间number-
cooldown-action冷却执行动作list-
cancel取消事件boolean & string & listfalse
async异步执行booleanfalse
disable禁用触发器booleanfalse
示例配置
yaml
示例配置:
  # 触发器类型,使用逗号分隔多个类型
  type: right,left
  # 处理优先级
  # 默认 normal,用于控制处理顺序,非 Bukkit 事件优先级。顺序如下:
  # lowest → low → normal → high → highest → monitor
  priority: normal
  # 临时变量
  entry:
    "玩家名": "%player_name%"
  # 触发条件
  condition:
    - ""
  # 位置条件
  # 若有实体或方块目标,则取其位置;否则使用玩家位置
  position: world,9,61,5
  # 若条件结果为 true,则取消(拦截)对应事件
  cancel: true
  # 触发动作
  action:
    - 消息('右键')
  # 按条件执行动作
  rules:
    - condition:
        - ""
      action:
        - ""
  # MythicMobs 技能
  skill:
    - 万千骰子
  # 冷却时间(秒)
  cooldown: 0.5
  # 冷却执行动作
  cooldown-action:
    - 消息('{prefix}§e药水使用频繁')
  # 掉落物设置,格式:类型 物品编号 数量 概率
  # 支持物品库:https://www.goodmc.cn/wiki/YeeCore/%E7%89%A9%E5%93%81%E5%BA%93.html
  # 掉落优先级:目标实体或方块所在位置 > 玩家当前位置(目标缺失时)
  drop:
    - "mc APPLE 1~5"
    - "mc DIAMOND 1 0.05"
  # 掉落物规则
  drop-rules:
    # 条件
    - condition:
        - ""
      # 满足条件时增加掉落物
      drop:
        - ""
  # 掉落物所有者,非所有者无法拾取
  drop-owner: true
  # 掉落物拾取限制时间(单位:秒),默认为config参数数值
  # 在该时间内仅限主人拾取,超时或重启后任何人均可拾取
  drop-owner-timeout: 60
  # 自动拾取
  # 优先级 灵魂空间 > 离渊仓库 > 背包
  auto-pickup: true
  # 禁用触发器
  disable: false
  # 异步处理,开启后将不处理事件拦截
  async: false

变量

变量说明
{id}处理器ID
{type}触发器类型
{world},{x},{y},{z}目标位置
{entity-name}目标实体名
{entity-type}目标实体类型
{cooldown}冷却时间(秒)