Cobblemon Spawn Alerts
一款高度可定制的 Cobblemon 副模组,用于在特定宝可梦出现时向你发出警报。
本模组已停止维护。
不再更新。不再修复补丁。更多详情请见页面底部。感谢大家的支持。
重要提示:
如果你处于服务器环境中,部分宝可梦信息可能无法正确显示!
服务器可选择安装此模组以向客户端广播这些信息,并拥有独立的配置文件。如果服务器未安装此模组,则相关信息将无法正确显示。
此外,虽然服务端模组是可选的,但如果服务器安装了该模组,所有客户端也必须安装。
1.12.0 更新:
自 1.12.0 版本起,Adventure 库已被替换为 Ember's Text API。这将导致现有配置失效。请参阅完整更新日志了解更多详情。
再也不用盯着小地图了!
你是否曾为了寻找极其稀有的宝可梦,在飞行过程中因为眼睛紧盯着阅读每只宝可梦的名字而错过了其他东西?有了这个模组,你只需在宝可梦出现时接收一条聊天消息即可!配置文件是一个易于编辑的 JSON 文件,你可以轻松添加任何你想要的宝可梦。
说到小地图……
CSA 完全兼容 Journeymap,并可以在宝可梦生成/消失时自动创建和删除航点。更多详情请参见下方的 Journeymap 集成选项卡。
完成图鉴吧!
只需编辑配置文件,每当有未注册或未捕获的宝可梦在你附近出现时,你就会收到警报!
高度可定制!
每只宝可梦都可以按照你的需求进行单独定制。如果你想 shiny 狩猎 Ralts,同时又不想错过任何漂亮的 Bidoofs(我超爱 Bidoof),这是完全可以做到的。消息使用 Ember's Text API 标记语法,让你能够轻松地以任何喜欢的方式对消息进行着色或格式化(参见 ETA 文档)。
默认消息看起来是这样的:

但可以根据需要修改成这样,或者任何你想要的样子!

全局警报!
灵感来源于 Cobblemon Spawn Notification,当稀有宝可梦(例如 shiny 或传说宝可梦)出现时,所有玩家都会收到警报。这可以在模组的服务器 server.json 配置中禁用。服务器仅向所有客户端发送一个数据包,以便每个玩家可以单独自定义他们的消息。
Discord Webhooks!
服务器 和 客户端都可以发送 Discord Webhook,支持通过嵌入等完全自定义。你甚至可以将生成的宝可梦图片嵌入其中!(使用 "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/{dex}.png")
服务器可以为全局警报启用 Webhook,而客户端可以为收到的每一条警报启用 Webhook。

常见问题:
我该如何做 x?y 是如何工作的?
请在继续问我配置如何工作之前 阅读文档。如果你仍然无法弄明白也没关系,但至少请先 尝试 自己解决。
使用命令时我的警报不生效?
这是预期行为,我仍在寻找更好的解决方案(如果存在的话)。你可以在 server.json 中使用 enableSpawnCommandAlerts,但请自行承担风险。这可能会导致某些宝可梦的生成出现问题,例如在 Cobblemon: Path to Legends 中。
技术细节:这会混入 (mixin) SpawnPokemon#execute 并使用玩家生成器系统强制发布生成事件。
是否支持 Xaero's Minimap 航点?
见页面底部。
你什么时候会……
见页面底部。
已知问题:
- 某些整合包会修改默认配置,导致某些功能默认无法正常工作。如果 CSA 是该整合包的一部分且某些警报(例如 shiny 警报)不生效,请尝试以下操作:
- /csa openconfig - 如果有重要内容,请先备份这些文件
- 删除客户端上的 main.json、pokemon.json 和 message_templates.json,以及单人游戏或主机服务器上的 server.json
- /csa reload - 这将使用默认设置创建新的配置文件
- Cobblemon Academy 2.0 使用的资源包完全覆盖了 CSA 的语言文件,破坏了 1.12.0 中的新格式。你可以选择编辑
message_templates.json,或者,如果你想使用 CSA 的默认语言文件,请前往resourcepacks -> Academy -> assets并彻底删除cobblemon_spawn_alerts目录。
配置:
要开始编辑配置,请阅读文档。
支持
尽管我不再维护此模组,但我仍会帮助他人。如需支持,请加入 Cobblemon discord,然后在 #content-zone-help 频道中搜索 Cobblemon Spawn Alerts。
我为何不再维护此模组,以及其他开发者的注意事项
为什么?
- 我不再有时间、精力、动力或热情来继续这个项目了。老实说,我有其他更想花时间去做的事情。
- 这个模组原本并没有打算做得这么大。我是为了自己使用而制作的它,但随着发展,它变得远超我作为一个仍在相对早期的模组开发者所能独自掌控的范围。
- 代码库已经一团糟。要添加新功能或修复其他问题都需要进行大规模的重构。说实话,整个模组都需要重写,并且需要考虑到插件系统或新的 Cobblemon 系统等设计。
对于开发者:
本模组和文档网站均采用 MIT 许可证授权。你可以自由修改和/或重新分发任何代码。欢迎随意使用其中相同的想法或概念。请随心所欲地做任何你想做的事。你不必为我署名或致谢。
我将不会合并任何 PR(拉取请求),也不会处理任何 Issue(问题反馈)。
Cobblemon Spawn Alerts
A highly customizable Cobblemon sidemod to alert you when a certain Pokemon spawns
This mod is no longer being maintained.
No updates. No patches. For more details, see the bottom of the page. Thanks for everything.
IMPORTANT:
Some Pokemon info may not display properly if you are on a server!
Servers can optionally install this mod to broadcast this info to clients if they desire, also with a config of its own. If a server does not have this mod installed, then things will not display correctly.
Also, while the serverside mod is optional, all clients must have the mod if the server does.
1.12.0 update:
As of 1.12.0, the Adventure library has been replaced with Ember's Text API. This will break existing configs. See the full changelog for more details.
No more staring at the minimap!
Have you ever been hunting for an ultra-rare, and as you're flying around your eyes are too focused on reading each Pokemon's name that you miss something? Well with this mod, you can simply receive a message in chat when the Pokemon spawns instead! The config is a JSON file that is very easy to edit and add any Pokemon you want.
Speaking of minimaps...
CSA is fully compatible with Journeymap and can automatically create and remove waypoints when Pokemon spawn/despawn. More details below in the Journeymap Integration tab.
Complete the Pokedex!
By simply editing the config, you can be alerted whenever an unregistered or uncaught Pokemon spawns near you!
Customizability!
Each Pokemon can be individually customized exactly to your needs. If you want to shiny hunt for a Ralts while making sure you don't miss out on any beautiful Bidoofs (i love bidoof), you can do that. Messages use Ember's Text API markup to easily color or format messages however you like (see the ETA docs).
The default message looks like this:

But can be modified to look like this, or however you want!

Global Alerts!
Inspired by Cobblemon Spawn Notification, all players will be alerted when a rare Pokemon (such as a shiny or legendary) spawns. This can be disabled in the server's server.json config for the mod. The server simply sends a packet to all clients, so that each player can individually customize their messages.
Discord Webhooks!
Both the server and clients can send Discord webhooks, fully customizable with embeds and everything. You can even embed an image of the spawned Pokemon! (Using "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/{dex}.png")
Servers can enable webhooks for global alerts, while clients can enable webhooks for every single alert they receive.

FAQ:
How do I do x? How does y work?
Please read the docs before you go on asking me how the configs work. If you still can't figure it out that's fine, just at least attempt it on your own first.
My alerts don't work when using commands?
This is intended behavior, which I still need to find a better solution for (if one exists). You can use enableSpawnCommandAlerts in server.json, but use this at your own risk. This can break spawning of some Pokemon, such as in Cobblemon: Path to Legends.
Technical details: This mixins to SpawnPokemon#execute and uses the player spawner system to forcibly post a spawn event.
Support for Xaero's Minimap waypoints?
See the bottom of the page.
When will you...
See the bottom of the page.
Known Issues:
- Some modpacks make changes to the default configs, causing some things to not work by default. If CSA was part of the modpack and some alerts (e.g. shinies) arent' working, try this:
- /csa openconfig - Backup these files if you have anything important
- Delete main.json, pokemon.json, and message_templates.json on your client, and/or server.json if you're in singleplayer or are hosting a server
- /csa reload - This creates new config files with default settings
- Cobblemon Academy 2.0 uses a resource pack which entirely overrides CSA's lang file, breaking the new formatting in 1.12.0. You have the option to either edit the
message_templates.json, or, if you want to use the default lang file of CSA, go toresourcepacks -> Academy -> assetsand delete thecobblemon_spawn_alertsdirectory entirely.
Config:
To get started with editing the config, read the docs.
Support
I'll still help people even though I no longer will be maintaining the mod. For support, go to the Cobblemon discord, then in #content-zone-help, search for Cobblemon Spawn Alerts.
Why I'm not maintaining the mod anymore, and notes for other developers
Why?
- I don't have the time, energy, motivation, or passion for this project anymore. I have other things I would much rather spend my time on, to be completely honest.
- The mod was never supposed to be this big. I made it for my own use, and it grew to something much larger than I was capable of handling alone as someone who's still relatively new to modding.
- The codebase is a complete mess. To add new features or fix other things would require massive refactors. Honestly, the entire mod needs to be rewritten with things like addons or the new Cobblemon systems in mind.
For developers:
This mod and the docs site are licensed as MIT. You may freely modify and/or redistribute any of the code. Feel free to use any of the same ideas or concepts. Do whatever you want. You don't have to credit me for anything.
I will NOT merge PRs or resolve issues.
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
下载 Cobblemon Spawn Alerts
修复因版本号为空导致全新安装时崩溃的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧