登陆 注册 QQ登陆
快捷导航
查看: 3|回复: 0

[模组分享] NotifMod (通知模组)-MOD模组

[复制链接]

5159

主题

5

回帖

6129

积分

龙❁妻

Rank: 8Rank: 8

经验
6129 EP
金粒
928 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 18:42:30 | 显示全部楼层 |阅读模式
NotifMod (通知模组)Github |相关wiki |源站链接支持: fabric一款客户端 Fabric 模组,当特定事件发生时为您提供通知!

该模组具有高度可配置性,目前支持以下事件:

- 装备耐久度低

- 不破坏装备停止工作(鞘翅)

- 装备完全修复(经验修补)

- 聊天消息

- 提到聊天用户名

- 能否睡觉

- 您的牵引物断裂

- 玩家加入服务器

- 玩家离开服务器

- 游戏加载完成

- 世界加载完成(初始连接时)

它还可以启动计时器,并在时间到期时提醒您(对于繁殖动物等事项非常有用)。

依赖关系

该模组依赖于:

- [Fabric API](链接)

- [Cloth Config API](链接)

- [Mod Menu(可选)](链接)

_模组将在没有 Mod Menu 的情况下运行,但您将无法访问游戏内配置界面,因此建议包含它。_

通知声音

该模组附带了一些简单的声音供您使用。但是,您可以使用游戏中的任何声音,甚至通过替换 NotifMod 的声音来添加自己的声音,使用简单的资源包!

通知过滤器

在模组的设置中,您会注意到可以使用正则表达式(也称为 RegEx)指定哪些聊天消息会给您发送通知。

如果您不知道什么是正则表达式,它基本上是一系列描述要查找(匹配)的模式的字符。

它们非常强大,可以描述大量内容,因为这个模组意在高度可配置,所以它们非常适合这项工作。

如果您真的想学习它们并做一些更复杂的事情,您可以很容易地在网上找到大量信息或在线测试它们(为了有一个想法,请观看[此视频](链接)并查看[RegExr](链接))!

我将介绍一些此模组中常见的正则表达式用法,以便让您了解如何执行简单的操作。

_为许多不同的用户名提供提及通知_

如果人们有时用我的用户名称呼我,但有时称呼我为 \"awex\"、\"alex\" 或 \"baka\",我可以使用这个正则表达式:*.\\*(\\p|awex|alex|baka).\\**

该模组将在实际解释正则表达式之前,将任何出现的 *\\p* 替换为您的用户名。

我们可以在括号内添加任意多个名称/单词,用 *|* 分隔。

这种方法存在一个小潜在问题:如果有人说 \"alexa\",我仍然会收到通知。

为了使它只在是一个完整的单词,没有任何额外字母的情况下才考虑它是提及,我们可以使用这个: *(.\\*\\W)?(\\p|awex|alex|baka)(\\W.\\*)?*

此更改告诉它,如果周围有任何其他字符,则其旁边的字符必须是除字母或数字之外的任何字符。

该模组还可以在提及时为您的用户名着色。您将再次需要使用正则表达式模式,但您很可能希望它与上面的过滤器非常相似。

如果您想为不同变体的用户名着色,您基本上只需省略 *.\\** 部分,例如:*\\p**|awex|alex|baka*

_获取私人消息的通知_

这可能会更加困难,因为私人消息是使用服务器插件进行的,它的工作方式将根据服务器使用的插件等而不同。

该插件可能使用 \"system\" 通道而不是 \"chat\",因此您必须确保您过滤的是正确的通道。

其余的工作取决于传入私人消息的外观。您将根据传入消息的格式编写正则表达式。

例如,如果传入消息的格式如下:**[Joe -> You] 你好!**

您可以使用类似于这样的内容:*.\\*\\[.+ -> You\\] .\\**

您还可以与其他内容一起使用它。例如,如果这是用于 \"system\" 通道,但您还想获得来自服务器控制台的消息的通知(它们以 **[Server]** 开头并使用 \"system\" 通道),您可以将其与上面的名称结合使用方式相同: *(\\[Server\\] .\\*)|(.\\*\\[.+ -> You\\] .\\*)*

~~_更新:截至 1.19 版本,来自服务器控制台的聊天消息不再使用 \"system\" 通道,它们现在使用 \"chat\" 通道。_~~

更新

来自Modrinth所有游戏版本1.21.41.21.51.21.21.21.31.211.21.11.20.61.20.31.20.41.20.21.201.20.11.19.31.19.11.19.21.191.181.18.11.18.21.17.11.171.16.41.16.5所有类型fabric1.6.1NotifMod-1.6.1.jar下载1.6.1#ReleaseNotifMod-1.6.1-sources.jar下载1.6.1#ReleaseUpdated to 1.21.4!展开版本: 1.6.1支持游戏: 1.21.4, 1.21.5类型:FabricRelease下载次数: 5631.6NotifMod-1.6.jar下载1.6#ReleaseNotifMod-1.6-sources.jar下载1.6#Release- Updated to 1.21.3!- Fixed reminder screen background glitches展开版本: 1.6支持游戏: 1.21.2, 1.21.3类型:FabricRelease下载次数: 531.5.5NotifMod-1.5.5.jar下载1.5.5#ReleaseNotifMod-1.5.5-sources.jar下载1.5.5#ReleaseFixes reminder screen background glitches.展开版本: 1.5.5支持游戏: 1.21, 1.21.1类型:FabricRelease下载次数: 3521.5.4NotifMod-1.5.4.jar下载1.5.4#ReleaseNotifMod-1.5.4-sources.jar下载1.5.4#ReleaseUpdated to 1.21!展开版本: 1.5.4支持游戏: 1.21, 1.21.1类型:FabricRelease下载次数: 4491.5.3NotifMod-1.5.3.jar下载1.5.3#ReleaseNotifMod-1.5.3-sources.jar下载1.5.3#ReleaseUpdated to 1.20.6!展开版本: 1.5.3支持游戏: 1.20.6类型:FabricRelease下载次数: 821.5.2NotifMod-1.5.2.jar下载1.5.2#ReleaseNotifMod-1.5.2-sources.jar下载1.5.2#ReleaseUpdated to 1.20.3!展开版本: 1.5.2支持游戏: 1.20.3, 1.20.4类型:FabricRelease下载次数: 1331.5.1NotifMod-1.5.1.jar下载1.5.1#ReleaseNotifMod-1.5.1-sources.jar下载1.5.1#ReleasePotential crash on first chat message patch.展开版本: 1.5.1支持游戏: 1.20.2类型:FabricRelease下载次数: 1,1621.5NotifMod-1.5.jar下载1.5#ReleaseNotifMod-1.5-sources.jar下载1.5#Release- added visual components to chat notifications- added option to change message indicator color for mentions/messages- added option to change the style (color, bold, italic, underline) of parts of the text of mentions/messages- added notifications for your lead breaking (due to distance or the mob dying)- added settings for disabling text notifications separately from sound notifications- added separate volume sliders for when the game is unfocused/minimized展开版本: 1.5支持游戏: 1.20.2类型:FabricRelease下载次数: 2371.4.3NotifMod-1.4.3.jar下载1.4.3#ReleaseNotifMod-1.4.3-sources.jar下载1.4.3#ReleaseReworked sound playing code, to hopefully avoid random crashes that have been reported in certain cases.展开版本: 1.4.3支持游戏: 1.20.2类型:FabricRelease下载次数: 1561.4.2NotifMod-1.4.2.jar下载1.4.2#ReleaseNotifMod-1.4.2-sources.jar下载1.4.2#ReleaseFixes join/leave notifications being triggered by NPCs (from server mods/plugins) or playerlist updates (again, noticed when using server mods/plugins to stylize the tablist).展开版本: 1.4.2支持游戏: 1.20.2类型:FabricRelease下载次数: 1391.4.1NotifMod-1.4.1.jar下载1.4.1#ReleaseNotifMod-1.4.1-sources.jar下载1.4.1#ReleaseUpdated to 1.20.2!展开版本: 1.4.1支持游戏: 1.20.2类型:FabricRelease下载次数: 2741.4NotifMod-1.4.jar下载1.4#ReleaseNotifMod-1.4-sources.jar下载1.4#ReleaseUpdated to 1.20.1!展开版本: 1.4支持游戏: 1.20, 1.20.1类型:FabricRelease下载次数: 3,4461.3.5NotifMod-1.3.5.jar下载1.3.5#ReleaseNotifMod-1.3.5-sources.jar下载1.3.5#ReleaseRequire newer version of Cloth Config API展开版本: 1.3.5支持游戏: 1.19.3类型:FabricRelease下载次数: 4161.3.4NotifMod-1.3.4.jar下载1.3.4#ReleaseNotifMod-1.3.4-sources.jar下载1.3.4#ReleaseForgot to update a file >.>展开版本: 1.3.4支持游戏: 1.19.3类型:FabricRelease下载次数: 1601.3.3NotifMod-1.3.3.jar下载1.3.3#ReleaseNotifMod-1.3.3-sources.jar下载1.3.3#ReleaseUpdated to 1.19.3!展开版本: 1.3.3支持游戏: 1.19.3类型:FabricRelease下载次数: 1461.3.2NotifMod-1.3.2.jar下载1.3.2#ReleaseNotifMod-1.3.2-sources.jar下载1.3.2#ReleaseFixes incompatibility with Cloth Config API >=8.1_Note: Vanilla 1.19.1 changed how messages work AGAIN, so some things might be going through different channels, but a bit more similar to pre-1.19 (at least it might appear this way, things actually work quite differently in the background).  If you\'re using custom RegEx filters, you might have to adjust them accordingly, if not, you might have to reset them. In general, the \"chat\" channel still has player messages, the \"system\" channel once again has messages sent through the server console (moved back from \"chat\" and this time it doesn\'t include the \"[Server]\" part of the message), \"game info\" still has other gameplay related messages, like before. You can use the semi-new setting \"Log message info\" to see helpful info in the logs, when trying to figure out your filters._展开版本: 1.3.2支持游戏: 1.19.1, 1.19.2类型:FabricRelease下载次数: 4711.3.1NotifMod-1.3.1.jar下载1.3.1#ReleaseNotifMod-1.3.1-sources.jar下载1.3.1#ReleaseUpdated to 1.19.1 and changed default filter settings as appropriate._Note: Vanilla 1.19.1 changed how messages work AGAIN, so some things might be going through different channels, but a bit more similar to pre-1.19 (at least it might appear this way, things actually work quite differently in the background).  If you\'re using custom RegEx filters, you might have to adjust them accordingly, if not, you might have to reset them. In general, the \"chat\" channel still has player messages, the \"system\" channel once again has messages sent through the server console (moved back from \"chat\" and this time it doesn\'t include the \"[Server]\" part of the message), \"game info\" still has other gameplay related messages, like before. You can use the semi-new setting \"Log message info\" to see helpful info in the logs, when trying to figure out your filters._展开版本: 1.3.1支持游戏: 1.19.1, 1.19.2类型:FabricRelease下载次数: 1641.3NotifMod-1.3.jar下载1.3#ReleaseNotifMod-1.3-sources.jar下载1.3#Release- add repeating reminders- use separate key bind to start reminder without the GUI- option to pause sleep reminders underground & in other dimensions (enabled by default)- add sleep reminder cooldown (configurable)- right click reminder title to clear- various other improvements_Note: Vanilla 1.19 changed how messages work, so some things might be going through different channels now (e.g. sending chat messages through the server console now uses the \"chat\" channel instead of \"system\"). If you\'re using custom RegEx filters, you might have to adjust them accordingly._展开版本: 1.3支持游戏: 1.19类型:FabricRelease下载次数: 2221.2.6NotifMod-1.2.6.jar下载1.2.6#ReleaseNotifMod-1.2.6-sources.jar下载1.2.6#ReleaseFixes error spam in console, when there\'s no reminder keybind set.*Note: Vanilla 1.19 changed how messages work, so some things might be going through different channels now (e.g. sending chat messages through the server console now uses the \"chat\" channel instead of \"system\"). If you\'re using custom RegEx filters, you might have to adjust them accordingly.*展开版本: 1.2.6支持游戏: 1.19类型:FabricRelease下载次数: 2741.2.5NotifMod-1.2.5.jar下载1.2.5#ReleaseNotifMod-1.2.5-sources.jar下载1.2.5#ReleaseSmall fix.*Note: Vanilla 1.19 changed how messages work, so some things might be going through different channels now (e.g. sending chat messages through the server console now uses the \"chat\" channel instead of \"system\"). If you\'re using custom RegEx filters, you might have to adjust them accordingly.*展开版本: 1.2.5支持游戏: 1.19类型:FabricRelease下载次数: 1861.2.4NotifMod-1.2.4.jar下载1.2.4#ReleaseNotifMod-1.2.4-sources.jar下载1.2.4#ReleaseFixed langkeys not getting translated properly.*Note: Vanilla 1.19 changed how messages work, so some things might be going through different channels now (e.g. sending chat messages through the server console now uses the \"chat\" channel instead of \"system\"). If you\'re using custom RegEx filters, you might have to adjust them accordingly.*展开版本: 1.2.4支持游戏: 1.19类型:FabricRelease下载次数: 1621.2.3NotifMod-1.2.3.jar下载1.2.3#ReleaseNotifMod-1.2.3-sources.jar下载1.2.3#ReleaseUpdated defaults for chat filter settings*Note: Vanilla 1.19 changed how messages work, so some things might be going through different channels now (e.g. sending chat messages through the server console now uses the \"chat\" channel instead of \"system\"). If you\'re using custom RegEx filters, you might have to adjust them accordingly.*展开版本: 1.2.3支持游戏: 1.19类型:FabricRelease下载次数: 1711.2.2NotifMod-1.2.2.jar下载1.2.2#ReleaseNotifMod-1.2.2-sources.jar下载1.2.2#Release- Update to MC 1.19- Add option to log incoming message info (like channel used)*Note: Vanilla 1.19 changed how messages work, so some things might be going through different channels now (e.g. sending chat messages through the server console now uses the \"chat\" channel instead of \"system\"). If you\'re using custom RegEx filters, you might have to adjust them accordingly.*展开版本: 1.2.2支持游戏: 1.19类型:FabricRelease下载次数: 1511.2.1NotifMod-1.2.1.jar下载1.2.1#ReleaseNotifMod-1.2.1-sources.jar下载1.2.1#ReleaseUpdate to MC 1.18展开版本: 1.2.1支持游戏: 1.18, 1.18.1, 1.18.2类型:FabricRelease下载次数: 2811.2NotifMod-1.2.jar下载1.2#ReleaseNotifMod-1.2-sources.jar下载1.2#Release- Adds case-sensitivity setting for chat notification filters (attention, default = none are case-sensitive, which is different than the previous version\'s behavior, but probably desirable). More simply, it can now ignore capitalization of words in your filters vs the chat.- The sleep reminder now pauses and resets when you\'re in a timeless dimension. In other words, you won\'t get notifications when you\'re in the Nether/The End now, but you\'d be notified the moment you get back to the Overworld, if it\'s night.- Improves mention filter defaults (you\'d need to manually press the reset button on them, to let the new defaults take effect)- Minor fixes/improvements related to langkeys展开版本: 1.2支持游戏: 1.17.1类型:FabricRelease下载次数: 1961.1.1NotifMod-1.1.1.jar下载1.1.1#ReleaseNotifMod-1.1.1-sources.jar下载1.1.1#ReleaseAdds some missing langkeys.展开版本: 1.1.1支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 1411.1NotifMod-1.1.jar下载1.1#ReleaseNotifMod-1.1-sources.jar下载1.1#Release- adds reminder list GUI and the ability to abort reminder timers- adds sleep reminder (you can now get notifications when you\'re able to sleep, adapts to weather, default = off)- adds support for system/game info messages (you can now get notifications for chat messages that came from the server console, this is the default)- reminder timers now get removed when you disconnect from the server- you can now close the reminder GUI with the same key-bind that opens it, too- other minor fixes/improvements展开版本: 1.1支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 1061.0.1-1.16NotifMod-1.0.1-1.16.jar下载1.0.1-1.16#ReleaseNotifMod-1.0.1-1.16-sources.jar下载1.0.1-1.16#ReleaseMC 1.16.4 Backport展开版本: 1.0.1-1.16支持游戏: 1.16.4, 1.16.5类型:FabricRelease下载次数: 2391.0.1NotifMod-1.0.1.jar下载1.0.1#ReleaseNotifMod-1.0.1-sources.jar下载1.0.1#ReleaseFix space patterns (bugfix)展开版本: 1.0.1支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 981.0NotifMod-1.0.jar下载1.0#ReleaseNotifMod-1.0-sources.jar下载1.0#Release展开版本: 1.0支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 101全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
NotifMod
楼主 2025-8-10 18:42:30 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

我的世界(Minecraft)小僵尸论坛

新会员

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-9-10 06:36 , Processed in 0.249593 second(s), 49 queries .

快速回复 返回顶部 返回列表