CobbleBattleRewards
CobbleBattleRewards 是一款可配置的 Fabric 模组,用于在 Cobblemon 战斗和捕获过程中给予玩家奖励。奖励可以通过游戏内图形界面(GUI)奖励编辑器进行编辑,也可以通过配置文件手动配置。
您可以为战斗胜利、失败、弃权、捕获、非战斗状态下的捕获以及野生宝可梦击杀创建奖励。奖励可以提供物品、执行命令、使用经济插件、针对特定宝可梦,并应用物种、形态、方面、属性、标签、等级、维度等方面的过滤器。
依赖项
功能
- 游戏内奖励编辑器:通过
/cbr gui命令创建、编辑、移动和删除奖励。 - 多种奖励触发条件:奖励战斗胜利、失败、弃权、捕获、非战斗状态捕获以及野生宝可梦击杀。
- 物品与命令奖励:给予物品堆或运行服务器命令,包括经济命令。
- 宝可梦目标选择:通过 GUI 选择宝可梦、形态、方面、闪光变体、标签以及扫描的条件。
- 允许/阻止过滤模式:将过滤器用作宝可梦、标签和扫描条件的要求或排除项。
- 战斗类型支持:配置针对野生、NPC 和 PvP 战斗的奖励。
- 优先级系统:高优先级的奖励先执行,且奖励可以通过
excludedRewards阻止低优先级奖励的执行。 - 冷却时间与几率:为每个奖励添加冷却时间和几率判定。
- 维度与等级过滤器:限制奖励仅在特定维度或特定宝可梦等级范围内生效。
- 安全的配置迁移:旧版配置文件会自动向前迁移。
命令
| 命令 | 权限 | 描述 |
|---|---|---|
/cbr gui |
cobblebattlerewards.gui |
打开游戏内奖励编辑器 GUI。 |
/cbr editgui |
cobblebattlerewards.gui |
同样打开奖励编辑器 GUI。 |
/cbr reload |
cobblebattlerewards.reload |
从磁盘重新加载配置文件,无需重启服务器。 |
/cbr listrewards |
cobblebattlerewards.list |
在聊天栏中列出已配置的奖励。 |
/cbr listconditions |
cobblebattlerewards.list_conditions |
列出可用的宝可梦条件数据以进行高级过滤。 |
GUI 奖励编辑器
GUI 编辑器是管理奖励的推荐方式。
使用 /cbr gui,您可以:
- 添加命令奖励。
- 通过将物品放置到 GUI 中来添加物品奖励。
- 更改奖励类别。
- 编辑奖励几率、优先级、消息、命令和物品载荷。
- 选择宝可梦、形态、方面和闪光变体。
- 选择 Cobblemon 形态标签。
- 扫描宝可梦数据以进行高级条件过滤。
- 切换每个过滤器组的允许/阻止模式。
- 启用非战斗状态捕获或野外击杀奖励。
- 安全地从 GUI 中删除奖励。
配置
CobbleBattleRewards 将其配置文件存储在以下位置:
config/cobblebattlerewards/config.jsonc
大多数用户应使用 GUI 编辑器,但仍支持手动编辑配置文件。
配置文件包含四个主要的奖励类别:
battleWonRewards(战斗胜利奖励)battleLostRewards(战斗失败奖励)battleForfeitRewards(战斗弃权奖励)captureRewards(捕获奖励)
常见的奖励设置:
| 设置项 | 描述 |
|---|---|
type |
"item" 给予物品。"command" 运行服务器命令。 |
chance |
概率百分比,范围从 0.0 到 100.0。 |
message |
给予奖励时发送给玩家的消息。 |
command |
用于命令奖励的命令。不要包含前导 /。 |
itemStack |
物品奖励的 JSON 物品堆数据。 |
battleTypes |
支持的战斗类型:"wild"(野生)、"npc"(NPC)、"pvp"(玩家对战)。 |
conditions |
宝可梦/物种/形态/方面过滤器,通常由 GUI 管理。 |
disallowedLabels |
通过 GUI 选择的标签过滤器。 |
exclusionConditions |
通过 GUI 选择的高级扫描条件过滤器。 |
pokemonConditionsBlacklist |
使宝可梦过滤器充当阻止过滤器。 |
labelConditionsBlacklist |
使标签过滤器充当阻止过滤器。 |
scannedConditionsBlacklist |
使扫描条件过滤器充当阻止过滤器。 |
rewardOutOfBattleCapture |
允许来自正常非战斗状态捕获的捕获奖励。 |
rewardOutOfBattleKill |
允许来自战斗外野生宝可梦击杀的战斗胜利奖励。 |
minLevel / maxLevel |
获得奖励所需的等级范围。 |
order |
奖励优先级。数字越大,越先执行。 |
excludedRewards |
如果此奖励已发放,则阻止列出的奖励 ID。 |
cooldown |
玩家再次获得此奖励之前需要等待的秒数。 |
allowedDimensions |
奖励可以触发的维度 ID。为空表示所有维度。 |
占位符
消息和命令支持以下占位符:
%player%%pokemon%%level%%battleType%%chance%%coords%%trigger%%time%
CobbleBattleRewards
CobbleBattleRewards is a configurable Fabric mod for rewarding players during Cobblemon battles and captures. Rewards can be edited in-game with a GUI reward editor or configured manually through the config file.
Create rewards for battle wins, losses, forfeits, captures, out-of-battle catches, and wild Pokémon kills. Rewards can give items, run commands, use economy plugins, target specific Pokémon, and apply filters for species, forms, aspects, types, labels, levels, dimensions, and more.
Dependencies
Features
- In-Game Reward Editor: Create, edit, move, and delete rewards through
/cbr gui. - Multiple Reward Triggers: Reward battle wins, losses, forfeits, captures, out-of-battle captures, and wild Pokémon kills.
- Item and Command Rewards: Give item stacks or run server commands, including economy commands.
- Pokemon Targeting: Select Pokémon, forms, aspects, shiny variants, labels, and scanned conditions through the GUI.
- Allow/Block Filter Modes: Use filters as requirements or exclusions for Pokémon, labels, and scanned conditions.
- Battle Type Support: Configure rewards for wild, NPC, and PvP battles.
- Priority System: Higher priority rewards run first, and rewards can block lower-priority rewards with
excludedRewards. - Cooldowns and Chance: Add per-reward cooldowns and chance rolls.
- Dimension and Level Filters: Limit rewards to specific dimensions or Pokémon level ranges.
- Safe Config Migration: Older configs are migrated forward automatically.
Commands
| Command | Permission | Description |
|---|---|---|
/cbr gui |
cobblebattlerewards.gui |
Opens the in-game reward editor GUI. |
/cbr editgui |
cobblebattlerewards.gui |
Also opens the reward editor GUI. |
/cbr reload |
cobblebattlerewards.reload |
Reloads the config from disk without a server restart. |
/cbr listrewards |
cobblebattlerewards.list |
Lists configured rewards in chat. |
/cbr listconditions |
cobblebattlerewards.list_conditions |
Lists available Pokémon condition data for advanced filtering. |
GUI Reward Editor
The GUI editor is the recommended way to manage rewards.
With /cbr gui, you can:
- Add command rewards.
- Add item rewards by placing an item into the GUI.
- Change reward category.
- Edit reward chance, priority, message, command, and item payload.
- Select Pokémon, forms, aspects, and shiny variants.
- Select Cobblemon form labels.
- Scan Pokémon data for advanced condition filters.
- Toggle allow/block modes for each filter group.
- Enable out-of-battle capture or wild kill rewards.
- Delete rewards safely from the GUI.
Configuration
CobbleBattleRewards stores its config at:
config/cobblebattlerewards/config.jsonc
Most users should use the GUI editor, but manual config editing is still supported.
The config has four main reward categories:
battleWonRewardsbattleLostRewardsbattleForfeitRewardscaptureRewards
Common reward settings:
| Setting | Description |
|---|---|
type |
"item" gives an item. "command" runs a server command. |
chance |
Percentage chance from 0.0 to 100.0. |
message |
Message sent to the player when the reward is given. |
command |
Command to run for command rewards. Do not include /. |
itemStack |
JSON item stack data for item rewards. |
battleTypes |
Supported battle types: "wild", "npc", "pvp". |
conditions |
Pokémon/species/form/aspect filters, usually managed by the GUI. |
disallowedLabels |
Label filters selected through the GUI. |
exclusionConditions |
Advanced scanned condition filters selected through the GUI. |
pokemonConditionsBlacklist |
Makes Pokémon filters act as block filters. |
labelConditionsBlacklist |
Makes label filters act as block filters. |
scannedConditionsBlacklist |
Makes scanned condition filters act as block filters. |
rewardOutOfBattleCapture |
Allows capture rewards from normal out-of-battle catches. |
rewardOutOfBattleKill |
Allows battle-won rewards from wild Pokémon kills outside battle. |
minLevel / maxLevel |
Level range required for the reward. |
order |
Reward priority. Higher numbers run first. |
excludedRewards |
Reward IDs blocked if this reward is given. |
cooldown |
Seconds before the player can receive this reward again. |
allowedDimensions |
Dimension IDs where the reward can trigger. Empty means all dimensions. |
Placeholders
Messages and commands support:
%player%%pokemon%%level%%battleType%%chance%%coords%%trigger%%time%
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
下载 CobbleBattleRewards
性能优化
- 提升了奖励检查的性能
- 减少了不必要的条件扫描
- 优化了宝可梦、属性、形态、标签和条件的处理。
之前的更新日志
- 添加了游戏内的奖励编辑器 GUI,使用命令 /cobblebattlerewards gui 打开。
- 添加了宝可梦、形态、外观、闪光、标签和条件的选择器。
- 为宝可梦、标签和已扫描的条件添加了允许/阻止的过滤模式。
- 添加了在非战斗状态下正常捕获时的可选奖励。
- 添加了在非战斗状态下击败野生宝可梦时的可选奖励。
- 重构了奖励优先级系统,使高优先级的奖励先执行。
- 改进了对宝可梦种类、形态、外观、属性、标签和已扫描条件的奖励过滤功能。
- 添加了针对旧配置文件的兼容迁移支持。
- 由于大多数编辑现在可以在游戏内完成,简化了配置文件中的注释说明。
- 改进了用于测试奖励资格和排查设置问题的调试日志记录。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧