• 如果您发现没有下载许可,请先验证邮箱再进行下载;金锭可通过每日签到或资源出售获取,目前没有其他渠道可获取。
  • 游客, 欢迎您来到九域资源社区,如果您是新人,请前往 论坛公告 板块查看新人引导教程 或者 点我打开
  • 已支持自助资源推荐投送,可在资源“更多选项”中使用金粒投放。
  • 已支持 API 上传资源版本更新,点击了解详情。
  • 已支持付费资源设置购买协议,可在“更多选项”中设置。
  • 全站已支持 Markdown 格式文本编辑器,可自由选择使用 BB 代码或 Markdown 格式。
PixelMonitor - 重铸宝可梦捕捉/战斗/连击/补给站/NPC交易 事件触发指令插件(1.21.1)

原创 金锭付费 工具 世界管理 PixelMonitor - 重铸宝可梦捕捉/战斗/连击/补给站/NPC交易 事件触发指令插件(1.21.1) 1.0.2

◆ 游戏版本
1.21.1
◆ 服务端核心
Youer,Arclight,Spigot,Paper
◆ 前置/依赖
PixelCore
◆ 原作者
Mutimc
YAML:
# ============================================
# 宝可梦捕捉 / 击杀 / 连击 事件触发指令配置
# 支持执行身份与前缀:
#   [console]   控制台执行
#   [op]        临时 OP 身份执行(执行完自动还原)
#   [player]    以玩家身份执行
#   [broadcast] 全服广播(支持 & 颜色代码)
#   [delay]     延迟执行,格式: [delay] <tick> <指令>
#   [title]     标题,格式: [title] <主>|<副>|<淡入>|<停留>|<淡出>
#   [actionbar] 动作栏消息
#   [sound]     音效,格式: [sound] <音效名> [音量] [音调]
# 占位符:
#   %player%  玩家名
#   %pokemon% 精灵名
#   %level%   精灵等级
#   %combo%   连击数
#   %exp%     经验加成倍率
# ============================================

# ============================================
# 捕捉精灵触发
# ============================================
capture:
  enabled: true
  # 权限节点,留空表示所有人可触发
  permission: ""
  # 冷却时间(秒),0 表示无冷却
  cooldown: 0
  # 是否只对指定精灵生效,留空 [] 表示全部精灵
  pokemon: []
  commands:
    - "[console] say %player% 捕捉到了 %pokemon%!"
    - "[console] give %player% minecraft:diamond 1"
    - "[broadcast] &a%player% 捕捉到了 &e%pokemon%&a!"
    - "[title] &a捕捉成功|&e%pokemon%|10|40|10"
    - "[actionbar] &e恭喜获得捕捉奖励"
    - "[sound] ENTITY_PLAYER_LEVELUP 1.0 1.0"

# ============================================
# 击杀精灵触发(战斗结束输赢判定)
# ============================================
kill:
  enabled: true
  # ---------- 赢 ----------
  win:
    enabled: true
    commands:
      - "[console] say %player% 赢下了战斗!"
      - "[console] give %player% minecraft:diamond 2"
      - "[title] &6胜利|&e你击败了 %pokemon%|10|50|10"
      - "[sound] UI_TOAST_CHALLENGE_COMPLETE 1.0 1.0"
      - "[player] me 赢了!"

  # ---------- 输 ----------
  lose:
    enabled: true
    commands:
      - "[console] say %player% 输掉了战斗..."
      - "[actionbar] &c你输掉了战斗"
      - "[player] me 输了..."

  # ---------- 平局 ----------
  draw:
    enabled: true
    commands:
      - "[console] say %player% 打成了平局"
      - "[actionbar] &e平局"
      - "[player] me 平局..."

  # ---------- 逃跑 ----------
  flee:
    enabled: true
    commands:
      - "[console] say %player% 逃跑了"
      - "[actionbar] &7你逃跑了"
      - "[player] me 逃跑了..."

  # ---------- 默认指令(未匹配到任何输赢分支时执行)----------
  commands:
    - "[console] say %player% 击杀了 %pokemon%!"
    - "[console] give %player% minecraft:emerald 1"
    - "[op] lp user %player% permission settemp pokemon.kill.reward true 1h"
    - "[player] me 击败了 %pokemon%"

# ============================================
# 特定精灵额外奖励
# ============================================
specific:
  pikachu:
    capture:
      - "[console] give %player% minecraft:gold_ingot 3"
      - "[player] me 抓住了皮卡丘!"
  mewtwo:
    kill:
      - "[console] give %player% minecraft:nether_star 1"
      - "[console] broadcast %player% 击杀了超梦!"

# ============================================
# 捕捉连击触发
# ============================================
combo:
  enabled: true

  # 连击增加时
  increment:
    enabled: true
    # 最低连击阈值,低于此值不触发
    min-combo: 0
    commands:
      - "[console] say %player% 连击数:%combo%"
      - "[actionbar] &e当前连击 &6%combo% &7(%pokemon%)"
      - "[player] me 当前连击 %combo%(%pokemon%)"

  # 连击经验加成时
  exp-bonus:
    enabled: true
    commands:
      - "[console] say %player% 获得了 %exp% 经验加成"
      - "[actionbar] &b经验加成 &e%exp%"
# ============================================
# 补给站事件触发
# ============================================
pokestop:
  enabled: true
  # ---------- 使用补给站前(可取消)----------
  use-pre:
    enabled: false
    cancel: false
    commands:
      - "[actionbar] &e你使用了补给站"
  # ---------- 使用补给站后 ----------
  use-post:
    enabled: true
    commands:
      - "[actionbar] &a补给站已刷新"
      - "[sound] BLOCK_NOTE_BLOCK_PLING 1.0 1.2"
  # ---------- 掉落生成前 ----------
  drops-pre:
    enabled: false
    commands:
      - "[actionbar] &e掉落生成中..."
  # ---------- 掉落生成后 ----------
  drops-post:
    enabled: true
    commands:
      - "[actionbar] &a获得 &e%drop-count% &a个物品"
      - "[broadcast] &a%player% 从补给站获得了 %drop-count% 个物品"
  # ---------- 冷却计算前(可改冷却小时)----------
  cooldown-pre-calculate:
    enabled: false
    override-hours: -1
    commands:
      - "[actionbar] &e冷却时间:%cooldown-hours% 小时"
  # ---------- 冷却检查后 ----------
  cooldown-post:
    enabled: false
    commands:
      - "[actionbar] &e冷却检查完成"
# ============================================
# NPC 交易事件触发
# ============================================
npc-trader:
  enabled: true
  # ---------- 打开交易界面前(可取消)----------
  show-pre:
    enabled: false
    cancel: false
    commands:
      - "[actionbar] &e%player% 打开了 NPC 交易界面"
  # ---------- 打开交易界面后 ----------
  show-post:
    enabled: true
    commands:
      - "[actionbar] &a与 &e%trader% &a交易中"
  # ---------- 接受交易前(可取消)----------
  accept-pre:
    enabled: false
    cancel: false
    commands:
      - "[actionbar] &e即将用 %player-pokemon% 换 %traded-pokemon%"
  # ---------- 接受交易后 ----------
  accept-post:
    enabled: true
    cooldown: 0
    commands:
      - "[broadcast] &a%player% 用 &e%player-pokemon% &a换到了 &e%traded-pokemon%"
      - "[actionbar] &a交易成功!"
      - "[sound] ENTITY_VILLAGER_TRADE 1.0 1.0"
1789750421560.png

指令权限说明
/pixelmonitor所有人显示帮助
/pixelmonitor help所有人显示帮助
/pixelmonitor reloadOP重载配置

Mutimc

Lv.1 泥土
高级创作者
2020-01-16
111
4
0
钻石
0.00 钻石
金锭
11,505 金锭
作者
Mutimc
价格
3 金锭
下载
3
查看
171
首次发布
最后更新

Ratings

0.00 星 0 星