- ◆ 支持核心
- CatServer
- ◆ 作者
- K_Ir_V
- ◆ 插件前置
- 无
- ◆ 游戏版本
- 1.12.2
KPokecmd - 一款宝可梦事件触发指令插件
YAML:
options:
# 开启后会在控制台输出匹配和概率调试信息。
debug: false
# 每个事件模块的总开关;false 表示该模块完全不触发,也不会加载该模块规则。
modules:
# 击败野生宝可梦触发指令模块。
defeat-pokemon: true
# 击败野生 Boss 宝可梦触发指令模块。
boss-pokemon: true
# 捕捉成功触发指令模块。
capture-pokemon: true
# 繁殖领取蛋触发指令模块。
breeding-pokemon: true
# 开启奖励箱触发指令模块。
loot-chest: true
# 采摘树果/浆果触发指令模块,包含 ApricornEvent.PickApricorn 和 BerryEvent.PickBerry。
harvest-berry: true
# 是否允许用中文本地化名称匹配,例如“皮卡丘”。
match-localized-name: true
# true 时,Boss 宝可梦只会匹配 boss-pokemon 模块,不会再匹配 pokemon 普通模块。
boss-only-use-boss-module: false
# 配置格式:
# defeat-pokemon:
# 宝可梦名称或中文名:
# chance: 50.0 # 触发概率,0-100
# commands:
# - 'say {player} 击败了 {localized}({pokemon}) Lv.{level}'
#
# 可用变量:
# {player} 玩家名
# {uuid} 玩家 UUID
# {pokemon} 宝可梦英文种族名
# {localized} 宝可梦本地化名称
# {level} 野生宝可梦等级
# {boss} Boss 阶级英文名,例如 Common、Rare、Legendary、Ultimate、Drowned
# {boss_localized} Boss 阶级本地化名称
# {ball} 捕捉成功时使用的精灵球英文名,仅 capture-pokemon 模块有值
# {egg} 繁殖领取蛋时的蛋种族英文名,仅 breeding-pokemon 模块有值
# {egg_localized} 繁殖领取蛋时的蛋本地化名称,仅 breeding-pokemon 模块有值
# {loot} 奖励箱类型,仅 loot-chest 模块有值,例如 POKEBALL、ULTRABALL、MASTERBALL、BEASTBALL、SPECIAL
# {loot_type} 同 {loot}
# {chest} 同 {loot}
defeat-pokemon:
Pikachu:
chance: 50.0
commands:
- 'say {player} 击败了 {localized},触发了 Pikachu 奖励!'
皮卡丘:
chance: 25.0
commands:
- 'give {player} minecraft:diamond 1'
# 指定野生 Boss 宝可梦模块。
# boss-modes 可不写,不写时表示任意 Boss 阶级都能触发。
# 可用 Boss 阶级:Common、Uncommon、Rare、Epic、Legendary、Ultimate、Spooky、Drowned、Equal
# 名称支持英文种族名或中文本地化名;* 表示任意 Boss 宝可梦。
boss-pokemon:
Pikachu:
chance: 100.0
boss-modes:
- Legendary
- Ultimate
commands:
- 'say {player} 击败了 {boss} Boss {localized}!'
- 'give {player} minecraft:emerald 3'
'*':
chance: 10.0
commands:
- 'say {player} 击败了一个野生 Boss:{boss} {localized}'
# 捕捉成功触发指令模块。
# 名称支持英文种族名或中文本地化名;* 表示捕捉任意宝可梦。
# 只在捕捉成功时触发,捕捉失败不会触发。
capture-pokemon:
Pikachu:
chance: 50.0
commands:
- 'say {player} 捕捉到了 {localized}({pokemon}) Lv.{level},使用球:{ball}'
'*':
chance: 5.0
commands:
- 'give {player} minecraft:gold_ingot 1'
# 繁殖领取蛋触发指令模块。
# 名称支持英文种族名或中文本地化名;* 表示领取任意宝可梦蛋。
# 在玩家从牧场方块领取蛋成功时触发。
breeding-pokemon:
Pikachu:
chance: 50.0
commands:
- 'say {player} 领取了 {egg_localized}({egg}) 的宝可梦蛋!'
'*':
chance: 5.0
commands:
- 'give {player} minecraft:iron_ingot 1'
# 开启奖励箱触发指令模块。
# 按奖励箱类型分别配置;* 表示任意奖励箱。
# 可用奖励箱类型:POKEBALL、ULTRABALL、MASTERBALL、BEASTBALL、SPECIAL
# POKEBALL = 普通精灵球奖励箱,ULTRABALL = 高级球奖励箱,MASTERBALL = 大师球奖励箱,BEASTBALL = 究极球奖励箱,SPECIAL = 特殊活动奖励箱。
loot-chest:
POKEBALL:
chance: 50.0
commands:
- 'say {player} 开启了普通奖励箱:{loot}'
ULTRABALL:
chance: 25.0
commands:
- 'give {player} minecraft:gold_ingot 2'
MASTERBALL:
chance: 10.0
commands:
- 'give {player} minecraft:diamond 1'
BEASTBALL:
chance: 10.0
commands:
- 'give {player} minecraft:emerald 1'
'*':
chance: 5.0
commands:
- 'say {player} 开启了奖励箱,类型:{loot_type}'
# 采摘树果/浆果触发指令模块。
# 名称支持球果/树果英文枚举名或显示名;* 表示任意采摘。
# harvest_type 会显示 APRICORN 或 BERRY。
harvest-berry:
RED:
chance: 50.0
commands:
- 'say {player} 采摘了 {harvest_localized}({harvest}),类型:{harvest_type},数量:{amount}'
ORAN:
chance: 25.0
commands:
- 'give {player} minecraft:gold_ingot 1'
'*':
chance: 5.0
commands:
- 'say {player} 在 {x},{y},{z} 采摘了 {harvest_type}: {harvest}'