
Cobblemon Catch Ball Rules 规则说明
Cobblemon Catch Ball Rules 是一款适用于 Minecraft 1.21.1 的 Fabric 模组,允许服务器管理员决定哪些宝可梦物种只能使用特定的精灵球进行捕捉,包括由 Cobblemon 扩展包或整合包添加的自定义精灵球。
如果某物种受到限制且玩家投掷了错误的精灵球,捕捉将立即失败。
如果使用的精灵球在允许范围内,模组会将尝试交还给 Cobblemon 的正常捕捉逻辑处理。
为何使用此模组
- 无需编辑代码即可创建传说或神话宝可梦的捕捉规则。
- 让稀有遭遇战显得更加特别。
- 将规则保存在简单的 JSON 文件中,可随时更改。
- 支持 Cobblemon 的标准精灵球以及来自扩展包或整合包的自定义精灵球,只要使用正确的物品 ID 即可。
- 对于合法的精灵球,保留 Cobblemon 原有的捕捉公式,而非替换整个系统。
- 通过命令重载配置更改,无需重启整个服务器。
依赖要求
- Minecraft
1.21.1
- Fabric Loader
- Cobblemon
>=1.7.3 <1.8.0
配置文件
路径:
config/cobblemon_catch_ball_rules.json
示例:
{
"consumeBlockedBall": false,
"showPlayerMessage": true,
"rules": [
{
"pokemon": ["mew", "mewtwo", "lugia"],
"allowedBalls": ["cobblemon:master_ball"],
"message": "&6&lLegendary rule! &r&7This Pokemon can only be captured with a &6Master Ball&7."
}
]
}
配置选项
consumeBlockedBall
控制被拦截的捕捉是否仍会消耗投掷出的精灵球。
false: 模组在拦截捕捉后退还精灵球
true: 即使捕捉被拦截,精灵球也会被消耗
showPlayerMessage
控制当发生被拦截的捕捉时,玩家是否会收到规则的提示消息。
true: 发送配置的提示消息
false: 静默拦截
rules
物种特定的限制列表。
每条规则包含:
pokemon: 用于匹配的目标物种 ID 或物种路径列表
allowedBalls: 允许的精灵球 ID 列表
message: 当规则拦截捕捉时显示的提示消息
样式化消息
message 字段支持 Minecraft 旧版格式化代码。
你可以使用以下任一方式:
示例:
{
"pokemon": ["mewtwo"],
"allowedBalls": ["cobblemon:master_ball"],
"message": "&4&lBlocked! &r&7This Pokemon can only be captured with a &6Master Ball&7."
}
- 有关 Minecraft 颜色/样式代码的完整列表及使用详情,请参阅 Minecraft Wiki:
编写规则
宝可梦 ID
你可以使用以下任一格式:
- 简短物种名称,如
"mew"
- 完整 ID,如
"cobblemon:mew"
精灵球 ID
请使用完整的物品风格 ID,例如:
"cobblemon:master_ball"
"cobblemon:ultra_ball"
"cobblemon:poke_ball"
自定义精灵球同样有效。如果其他模组或扩展包添加了新的捕捉精灵球,你可以像这样在 allowedBalls 中使用该精灵球的物品 ID。
规则示例
仅限超级球用于部分传说宝可梦:
{
"pokemon": ["mew", "mewtwo", "lugia"],
"allowedBalls": ["cobblemon:master_ball"],
"message": "&6&lLegendary rule! &r&7This Pokemon can only be captured with a &6Master Ball&7."
}
仅限究极球用于究极异兽:
{
"pokemon": ["nihilego", "buzzwole", "pheromosa"],
"allowedBalls": ["cobblemon:beast_ball"],
"message": "This Pokemon reacts only to a Beast Ball."
}
允许多种精灵球选择:
{
"pokemon": ["articuno"],
"allowedBalls": ["cobblemon:ultra_ball", "cobblemon:master_ball"],
"message": "Articuno can only be captured with an Ultra Ball or Master Ball."
}
重载命令
你可以无需重启服务器即可重载配置文件。
这在实时服务器上调整规则或在单人世界中测试配置更改时非常有用。
命令:
/ccbr reload
/cobblemoncatchballrules reload
权限要求:
功能说明:
- 重新加载
config/cobblemon_catch_ball_rules.json
- 立即应用更新后的规则至未来的捕捉尝试中

故障排除
如果配置文件缺失,模组会自动创建一个默认配置。
如果配置文件是无效的 JSON 格式,模组将在启动期间记录错误并重新生成带有默认值的配置文件。
如果你的规则似乎未生效:
- 验证物种名称或 ID 是否与目标物种匹配
- 验证精灵球 ID 是否与 Cobblemon 中的实际精灵球 ID 匹配
- 检查你的配置中是否存在与该物种匹配的规则

Cobblemon Catch Ball Rules
Cobblemon Catch Ball Rules is a Fabric mod for Minecraft 1.21.1 that lets server owners decide which Pokemon species can only be caught with specific Poke Balls, including custom balls added by Cobblemon add-ons or modpacks.
If a species is restricted and the player throws the wrong ball, the capture fails immediately.
If the ball is allowed, the mod hands the attempt back to Cobblemon's normal capture logic.
Why Use This Mod
- Create legendary or mythical catch rules without editing code.
- Make rare encounters feel more special.
- Keep rules in a simple JSON file that can be changed at any time.
- Support both Cobblemon's standard balls and custom balls from add-ons or modpacks, as long as you use the correct item ID.
- Preserve Cobblemon's normal catch formulas for valid balls instead of replacing the whole system.
- Reload config changes with a command instead of restarting the whole server.
Requirements
- Minecraft
1.21.1
- Fabric Loader
- Cobblemon
>=1.7.3 <1.8.0
Config File
Path:
config/cobblemon_catch_ball_rules.json
Example:
{
"consumeBlockedBall": false,
"showPlayerMessage": true,
"rules": [
{
"pokemon": ["mew", "mewtwo", "lugia"],
"allowedBalls": ["cobblemon:master_ball"],
"message": "&6&lLegendary rule! &r&7This Pokemon can only be captured with a &6Master Ball&7."
}
]
}
Config Options
consumeBlockedBall
Controls whether a blocked capture should still consume the thrown ball.
false: the mod refunds the ball after blocking the capture
true: the ball is consumed even though the capture was blocked
showPlayerMessage
Controls whether the player receives the rule's message when a blocked capture happens.
true: send the configured message
false: block silently
rules
List of species-specific restrictions.
Each rule contains:
pokemon: list of species IDs or species paths to match
allowedBalls: list of allowed Poke Ball IDs
message: message shown when the rule blocks a capture
Styled Messages
The message field supports Minecraft legacy formatting codes.
You can use either:
& codes, like &6&lLegendary!
Example:
{
"pokemon": ["mewtwo"],
"allowedBalls": ["cobblemon:master_ball"],
"message": "&4&lBlocked! &r&7This Pokemon can only be captured with a &6Master Ball&7."
}
- For the full list of Minecraft color/style codes and usage details, see the Minecraft Wiki:
Writing Rules
Pokemon IDs
You can use either:
- short species names like
"mew"
- full IDs like
"cobblemon:mew"
Ball IDs
Use full item-style IDs such as:
"cobblemon:master_ball"
"cobblemon:ultra_ball"
"cobblemon:poke_ball"
Custom balls work too. If another mod or add-on adds a new catch ball, you can use that ball's item ID in allowedBalls the same way.
Example Rules
Only Master Balls for some legendaries:
{
"pokemon": ["mew", "mewtwo", "lugia"],
"allowedBalls": ["cobblemon:master_ball"],
"message": "&6&lLegendary rule! &r&7This Pokemon can only be captured with a &6Master Ball&7."
}
Only Beast Balls for Ultra Beasts:
{
"pokemon": ["nihilego", "buzzwole", "pheromosa"],
"allowedBalls": ["cobblemon:beast_ball"],
"message": "This Pokemon reacts only to a Beast Ball."
}
Allow several ball choices:
{
"pokemon": ["articuno"],
"allowedBalls": ["cobblemon:ultra_ball", "cobblemon:master_ball"],
"message": "Articuno can only be captured with an Ultra Ball or Master Ball."
}
Reload Command
You can reload the config without restarting the server.
This is useful when you are adjusting rules on a live server or testing config changes in a singleplayer world.
Commands:
/ccbr reload
/cobblemoncatchballrules reload
Requirements:
- operator/admin level permission
What it does:
- reloads
config/cobblemon_catch_ball_rules.json
- applies updated rules immediately to future capture attempts

Troubleshooting
If the config file is missing, the mod creates a default one automatically.
If the config file is invalid JSON, the mod regenerates it with defaults and logs the error during startup.
If your rules seem ignored:
- verify the species name or ID matches the target species
- verify the ball ID matches Cobblemon's actual Poke Ball ID
- check whether the species has a matching rule in your config
评论 0
登录后参与评分
还没有评论,来抢沙发吧