Cobblemon ShinyDex
一个 Cobblemon 插件,将完成宝可梦图鉴变为真正的目标:按地区追踪你的进度,并获得能真正提升闪光几率的闪光宝珠——前提是你已经获得了佩戴它的资格。
适用于 Fabric 和 NeoForge,Minecraft 1.21.1,Cobblemon 1.8.0 或更高版本。
物种数据读取自 Cobblemon 的已实现列表,因此由数据包和附加组件添加的宝可梦会自动被识别——无需在此端进行更新。
功能
闪光宝珠 (Shiny Charm)
一种可穿戴饰品,可提高你的闪光遭遇率。它不是起始物品:默认情况下,当你完成全国图鉴时获得该宝珠,且仅对获得它的玩家生效。以其他方式装备它没有任何效果。
所有相关设置均可配置并热重载,无需重启服务器:包括几率、所需地区、传说宝可梦、幻之宝可梦、悖论宝可梦和究极异兽是否计入统计、是必须捕捉还是仅需目击——以及是否允许获得该宝珠。
图鉴追踪
追踪所有十个地区的进度——关都、城都、丰缘、神奥、合众、卡洛斯、阿罗拉、伽勒尔、帕底亚以及全国。
对于每个地区,你可以查看已实现的物种数量、你已看到的数量、已捕捉的数量以及精确的完成百分比。缺失列表支持分页,按属性类型着色,且页码箭头可点击。
进度奖励 (Advancements)
每个地区有一个进度奖励,全国图鉴作为最终挑战,以及一个闪光宝珠进度奖励,当满足服务器要求时授予宝珠。
多语言支持
英语、法语、德语、西班牙语(西班牙和墨西哥)、意大利语、巴西葡萄牙语、俄语、乌克兰语、波兰语、荷兰语、土耳其语、日语、韩语和中文(简体和繁体)。宝可梦名称来自 Cobblemon 自身的翻译,因此它们遵循你安装的语言包,并涵盖 Cobblemon 知道的所有物种。
命令
| 命令 |
权限 |
作用 |
/shinydex info |
all |
当前闪光几率,以比例和百分比显示 |
/shinydex check |
all |
所有地区的进度,每行一个地区 |
/shinydex check <region> |
all |
单个地区的进度 |
/shinydex missing <region> [page] |
all |
你仍需要的物种,每页 30 个 |
/shinydex completion <region> |
all |
详细分解:已实现、已看到、已捕捉、百分比、状态 |
/shinydex charm |
all |
闪光宝珠状态、现行规则以及你在这些规则下的进度 |
/shinydex reload |
OP level 2 |
无需重启即可重新加载配置文件 |
有效地区:kanto, johto, hoenn, sinnoh, unova, kalos, alola, galar, paldea, national。unys 可作为 Unova 的别名接受。
missing 列表以金色显示图鉴编号,并以主要属性颜色显示物种名称。底部的页码箭头可点击——无需重新输入命令即可浏览列表。
/shinydex missing kanto
/shinydex missing unova 2
/shinydex completion national
配置
首次启动时会在 config/cobblemon_shinydex/main.json 创建文件:
{
"configVersion": 1,
"shinyCharm": {
"enabled": true,
"spawnChance": 3750,
"requireUnlock": true
},
"unlock": {
"enabled": true,
"regions": ["national"],
"mode": "caught",
"includeLegendaries": true,
"includeMythicals": true,
"includeParadox": true,
"includeUltraBeasts": true,
"extraExcludedLabels": []
}
}
shinyCharm — 宝珠的作用
| 设置项 |
默认值 |
含义 |
enabled |
true |
总开关。false 完全关闭宝珠功能:不提供闪光加成,任何人都无法获得它。但图鉴追踪功能仍正常工作。 |
spawnChance |
3750 |
佩戴宝珠的玩家闪光几率的分母:3750 表示大约 1/3750 的几率。 |
requireUnlock |
true |
true:宝珠仅对获得它的玩家生效,且只有他们才能装备。false:任何佩戴者均可受益,无论其如何获得。 |
unlock — 如何获得宝珠
| 设置项 |
默认值 |
含义 |
enabled |
true |
满足条件时授予该魅力。已经获得它的玩家将保留它。 |
regions |
["national"] |
必须全部完成的地区。可选值包括 kanto、johto、hoenn、sinnoh、unova(或 unys)、kalos、alola、galar、paldea、national。空列表 [] 表示无要求:每位玩家在下次检查时都会获得该魅力。 |
mode |
"caught" |
"caught":每种被统计的宝可梦都必须被捕获。"seen":仅需看到即可。 |
includeLegendaries |
true |
统计传说宝可梦。 |
includeMythicals |
true |
统计幻之宝可梦。 |
includeParadox |
true |
统计悖论宝可梦。 |
includeUltraBeasts |
true |
统计究极异兽。 |
extraExcludedLabels |
[] |
其他需要排除的 Cobblemon 物种标签,例如 ["baby"]。 |
这些规则仅适用于魅力。地区进度和 /shinydex check、missing 以及 completion 始终测量完整的图鉴(已捕获状态)。请使用 /shinydex charm 查看在魅力规则下的进度。
一旦玩家获得了该魅力,他们将永久保留:即使后续收紧规则也不会收回它。
验证
超出范围或未知的值会被自动修正而非导致崩溃——未知地区会被丢弃,无效的 mode 会回退到 caught——并写回修正后的文件,以便你查看实际生效的内容。如果 regions 列表中没有任何有效值,则重置为 ["national"],而不是视为“无要求”。
来自旧版本的配置(config/shinydex.json,{ "shinyCharmSpawnChance": ... })会自动迁移:其概率会被转移到 config/cobblemon_shinydex/main.json,旧文件重命名为 shinydex.json.old。
运行 /shinydex reload 以在不重启的情况下应用更改。
安装
- 为 Minecraft 1.21.1 安装 Cobblemon 1.8.0 或更高版本。
- 为你的加载器安装配件模组:
- Fabric —— Trinkets(还需 Fabric API 和 Fabric Language Kotlin)
- NeoForge —— Curios(还需 Kotlin for Forge)
- 将与你加载器匹配的 ShinyDex jar 放入
mods/ 目录。
- 启动游戏。
依赖项
|
Fabric |
NeoForge |
| Minecraft |
1.21.1 |
1.21.1 |
| Cobblemon |
1.8.0+ |
1.8.0+ |
| 配件槽位 |
Trinkets 3.10.0+ |
Curios 9.5.1+ |
| 还需 |
Fabric API, Fabric Language Kotlin |
Kotlin for Forge |
该魅力使用项链槽位。在 NeoForge 上,模组自行声明了该槽位,因此 Curios 可直接使用,无需额外配置。
服务器说明
进度检查进行了节流处理,并跳过任何已完成地区的检查,因此无论玩家数量多少,模组在已建立的服务器上的 Tick 开销几乎为零。
解锁要求在关键位置得到执行——即在出生时,而不仅仅是在物品栏槽位处。通过指令、其他模组或漏洞获得的魅力,若未达成对应进度(除非 requireUnlock 为 false),则不会生效。
在早期版本中已完成全国图鉴的玩家将保留他们的魅力,且不会重复发放。
构建
./gradlew build
Jar 包生成于 fabric/build/libs/ 和 neoforge/build/libs/。-dev 和 -sources jar 是构建产物;应分发的仅是普通版本号 jar。
该项目采用标准的 Architectury 多加载器布局:共享代码位于 common/,加载器特定的适配代码分别位于 fabric/ 和 neoforge/。
问题反馈
错误报告和建议请提交至 Issue Tracker。如果是闪光率相关问题,请附上你的 config/cobblemon_shinydex/main.json 以及所使用的加载器类型。
Cobblemon ShinyDex
A Cobblemon add-on that turns Pokédex completion into a real goal: track your progress region by region, and earn a Shiny Charm that actually improves your shiny odds — once you've earned the right to wear it.
Runs on Fabric and NeoForge, Minecraft 1.21.1, Cobblemon 1.8.0 or later.
Species are read from Cobblemon's implemented list, so Pokémon added by datapacks and addons are picked up automatically — no update needed on this side.
Features
Shiny Charm
A wearable accessory that raises your shiny encounter rate. It is not a starting item: by default the charm is awarded when you complete the National Pokédex, and it only works for a player who has earned it. Equipping it any other way does nothing.
Everything about it is configurable and reloadable without restarting the server: the rate, which regions are required, whether legendaries, mythicals, paradox Pokémon and Ultra Beasts count, whether species must be caught or only seen — or whether the charm can be earned at all.
Pokédex tracking
Progress is tracked for all ten regions — Kanto, Johto, Hoenn, Sinnoh, Unova, Kalos, Alola, Galar, Paldea and National.
For each one you can see how many species are implemented, how many you've seen, how many you've caught, and the exact completion percentage. The missing list is paginated, colour-coded by type, and the page arrows are clickable.
Advancements
One advancement per region, plus the National Pokédex as the final challenge, and a Shiny Charm advancement that awards the charm once the server's requirement is met.
Languages
English, French, German, Spanish (Spain and Mexico), Italian, Brazilian Portuguese, Russian, Ukrainian, Polish, Dutch, Turkish, Japanese, Korean and Chinese (Simplified and Traditional). Pokémon names come from Cobblemon's own translations, so they follow whatever language pack you have installed and cover every species Cobblemon knows.
Commands
| Command |
Permission |
What it does |
/shinydex info |
all |
Current shiny rate, as a ratio and a percentage |
/shinydex check |
all |
Progress across every region, one line each |
/shinydex check <region> |
all |
Progress for one region |
/shinydex missing <region> [page] |
all |
Species you still need, 30 per page |
/shinydex completion <region> |
all |
Full breakdown: implemented, seen, caught, percentage, status |
/shinydex charm |
all |
Shiny Charm status, the rules in force, and your progress under those rules |
/shinydex reload |
OP level 2 |
Reload the config file without restarting |
Valid regions: kanto, johto, hoenn, sinnoh, unova, kalos, alola, galar, paldea, national. unys is accepted as an alias for Unova.
The missing list shows the Pokédex number in gold and the species name in its primary type's colour. Page arrows at the bottom are clickable — no need to retype the command to move through the list.
/shinydex missing kanto
/shinydex missing unova 2
/shinydex completion national
Configuration
A file is created at config/cobblemon_shinydex/main.json on first launch:
{
"configVersion": 1,
"shinyCharm": {
"enabled": true,
"spawnChance": 3750,
"requireUnlock": true
},
"unlock": {
"enabled": true,
"regions": ["national"],
"mode": "caught",
"includeLegendaries": true,
"includeMythicals": true,
"includeParadox": true,
"includeUltraBeasts": true,
"extraExcludedLabels": []
}
}
shinyCharm — what the charm does
| Setting |
Default |
Meaning |
enabled |
true |
Master switch. false turns the charm off entirely: no shiny boost and nobody can earn it. Pokédex tracking keeps working. |
spawnChance |
3750 |
Denominator of the shiny chance for a player wearing the charm: 3750 means roughly 1 in 3750. |
requireUnlock |
true |
true: the charm only works for — and can only be equipped by — a player who earned it. false: anyone wearing one benefits, however they got it. |
unlock — how the charm is earned
| Setting |
Default |
Meaning |
enabled |
true |
Whether meeting the requirement awards the charm. Players who already earned it keep it. |
regions |
["national"] |
Regions that must all be completed. Any of kanto, johto, hoenn, sinnoh, unova (or unys), kalos, alola, galar, paldea, national. An empty list [] means no requirement: every player receives the charm on their next check. |
mode |
"caught" |
"caught": every counted species must be caught. "seen": seeing it is enough. |
includeLegendaries |
true |
Count legendary Pokémon. |
includeMythicals |
true |
Count mythical Pokémon. |
includeParadox |
true |
Count paradox Pokémon. |
includeUltraBeasts |
true |
Count Ultra Beasts. |
extraExcludedLabels |
[] |
Any other Cobblemon species labels to leave out, e.g. ["baby"]. |
These rules only apply to the charm. Region advancements and /shinydex check, missing and completion always measure the full Pokédex, caught. Use /shinydex charm to see your progress under the charm's rules.
Once a player has earned the charm, they keep it: tightening the rules later does not take it back.
Validation
Out-of-range or unknown values are corrected rather than crashing — unknown regions are dropped, an invalid mode falls back to caught — and the corrected file is written back so you can see what actually applied. A regions list where nothing is valid is reset to ["national"] rather than treated as "no requirement".
A config from an older version (config/shinydex.json, { "shinyCharmSpawnChance": ... }) is migrated automatically: its rate is carried over to config/cobblemon_shinydex/main.json, and the old file is renamed shinydex.json.old.
Run /shinydex reload to pick up changes without a restart.
Installation
- Install Cobblemon 1.8.0 or later for Minecraft 1.21.1.
- Install the accessory mod for your loader:
- Fabric — Trinkets (plus Fabric API and Fabric Language Kotlin)
- NeoForge — Curios (plus Kotlin for Forge)
- Drop the ShinyDex jar matching your loader into
mods/.
- Launch.
Dependencies
|
Fabric |
NeoForge |
| Minecraft |
1.21.1 |
1.21.1 |
| Cobblemon |
1.8.0+ |
1.8.0+ |
| Accessory slot |
Trinkets 3.10.0+ |
Curios 9.5.1+ |
| Also required |
Fabric API, Fabric Language Kotlin |
Kotlin for Forge |
The charm uses the necklace slot. On NeoForge the mod declares that slot itself, so Curios works out of the box with no extra configuration.
Server notes
Progress checks are throttled and skip any region already completed, so the mod's tick cost stays close to zero on an established server regardless of player count.
The unlock requirement is enforced where it matters — at spawn time, not just at the inventory slot. A charm obtained through a command, another mod, or a bug still has no effect without the advancement (unless requireUnlock is false).
Players who completed the National Pokédex on an earlier version keep their charm and are not given a second one.
Building
./gradlew build
Jars land in fabric/build/libs/ and neoforge/build/libs/. The -dev and -sources jars are build artefacts; the one to ship is the plain versioned jar.
The project is a standard Architectury multiloader layout: shared code in common/, loader-specific wiring in fabric/ and neoforge/.
Issues
Bug reports and suggestions go to the issue tracker. For a shiny-rate problem, please include your config/cobblemon_shinydex/main.json and which loader you're on.
评论 0
登录后参与评分
还没有评论,来抢沙发吧