NotifReminder
设置一个基于真实时钟时间的提醒,使其触发一次或按任意间隔重复,并通过聊天消息、屏幕标题、角落弹窗提示或同时显示这三种方式接收通知。将任意提醒固定到 HUD 上的实时倒计时中。
所有功能均在客户端运行。不会向任何服务器发送数据,不使用 Mixin(混入),且提醒在断开连接、切换世界或完全重启游戏后依然保留。
用法
/nr add <start_time> <message> 触发一次
/nr addloop <start_time> <loop_time> <loop_quantity> <message> 重复触发
/nr add +10min Drink Water! 一次,从现在起十分钟后
/nr add 20h00 Dinner 一次,在 20:00,如果已过则改为明天
/nr addloop 15h15 20min inf Drink Water! 每 20 分钟一次,从 15:15 开始
/nr addloop +10min 1h 8 Stretch 十分钟后第一次,之后每小时一次,共 8 次
/nr addloop now 45min inf &cCheck the forge right now, then every 45 minutes, in red 立即触发,然后每 45 分钟一次,红色文字
- start_time:
15h15、15h、15:15、now,或类似 +10min 的偏移量
- loop_time:一个数字加一个单位,
s m min h d,范围从 5 秒到 365 天
- loop_quantity:一个整数,或
inf 表示无限重复
/notifreminder 可作为完整别名使用。
管理提醒
| 命令 |
效果 |
/nr list |
列出所有提醒:ID、下次触发时间、剩余次数、类型、消息内容 |
/nr delete <id> |
删除某一条提醒 |
/nr repeat <id> |
重新启动已完成的提醒,从现在开始算一个间隔后触发 |
/nr cleardone |
删除所有已完成的提醒 |
/nr clear 然后 /nr clear confirm |
删除所有提醒 |
/nr pause <id>, /nr resume <id> |
静音某条提醒而不删除它 |
/nr test <id> |
立即触发该提醒,不改变其计划时间表 |
屏幕计时器
/nr hud add <id> 将提醒添加到计时器列表
/nr hud remove <id> 从列表中移除
/nr hud 显示当前列表中的内容
/nr hud edit 拖拽放置位置,鼠标悬停滚动以调整大小
当你离开时触发的提醒
没有剩余触发次数的提醒不会被自动删除。它会保留在列表中并显示为 done,无论它是在你观看时触发还是在你关闭游戏期间触发,这样你永远有机会重新启动它。下次登录时,模组会告知哪些提醒在你离开期间被触发,并提供点击操作选项:
[NotifReminder] 2 reminders triggered while you were away:
#1 potions [repeat] [delete]
#3 Drink Water! [repeat] [delete]
[clear them all]
/nr repeat <id> 仅对已完成的提醒有效。
[repeat] 会重新启动该提醒,从现在开始算一个间隔后再次触发,并保持原有设置不变。
通知类型
/nr types chat,title,toast 设置默认类型。在消息前添加 -t title,toast 可针对单条提醒覆盖默认类型。
声音
/nr sound 显示当前设置。/nr sound on、off、volume <0-100> 和 type <sound> 可更改设置,设置音量或声音时会立即播放以便你在等待之前进行评估。
type 接受简短名称(如 bell、chime、xp、ding、pling、levelup 等)或游戏识别的任何音效 ID,例如 block.anvil.fall 或 music_disc_lava_chicken。
颜色
Minecraft 的格式化代码可在消息中使用:&cred、&lbold、&r 用于重置。非代码的连字符会被原样保留,因此 Tom & Jerry 可以正常工作。
提醒保存在 config/notifreminder.json 中,并在所有世界和服务器之间共享。
要求
- Minecraft 26.1.2(此构建仅针对 26.1.x 版本)
- Fabric Loader 0.19.3 或更高版本
- Fabric API
- Java 25
NotifReminder
Set a reminder for a real clock time, have it trigger once or repeat on any interval, and get it as a
chat message, an on-screen title, a toast in the corner, or all three at once. Pin any of them to a
live countdown on your HUD.
Everything is client-side. Nothing is sent to any server, there are no mixins, and reminders
survive disconnects, world changes and full game restarts.
Usage
/nr add <start_time> <message> triggers once
/nr addloop <start_time> <loop_time> <loop_quantity> <message> repeats
/nr add +10min Drink Water! once, ten minutes from now
/nr add 20h00 Dinner once, at 20:00, or tomorrow if it has gone
/nr addloop 15h15 20min inf Drink Water! every 20 minutes, starting at 15:15
/nr addloop +10min 1h 8 Stretch in 10 minutes, then hourly, 8 times
/nr addloop now 45min inf &cCheck the forge right now, then every 45 minutes, in red
- start_time:
15h15, 15h, 15:15, now, or a + offset like +10min
- loop_time: a number and one unit,
s m min h d, from 5s to 365d
- loop_quantity: a whole number, or
inf to repeat forever
/notifreminder works as a full alias.
Managing reminders
| Command |
Effect |
/nr list |
Every reminder: id, next trigger, remaining count, types, message |
/nr delete <id> |
Delete one |
/nr repeat <id> |
Start a finished one again, one interval from now |
/nr cleardone |
Delete every reminder that has finished |
/nr clear then /nr clear confirm |
Delete all |
/nr pause <id>, /nr resume <id> |
Mute one without deleting it |
/nr test <id> |
Trigger it now without touching its schedule |
On-screen timers
/nr hud add <id> put a reminder on the timer list
/nr hud remove <id> take it off
/nr hud show what is on it
/nr hud edit drag it into place, scroll over it to resize
When one goes off while you are away
A reminder that has nothing left to trigger is never deleted on its own. It stays in the list showing done, whether it triggered while you were watching or while the game was closed, so you always get the chance to start it again. On your next login the mod says which ones triggered, with a click to act on each:
[NotifReminder] 2 reminders triggered while you were away:
#1 potions [repeat] [delete]
#3 Drink Water! [repeat] [delete]
[clear them all]
/nr repeat <id> only works on a reminder that has finished.
[repeat] starts that reminder again one interval from now and keeps it exactly as it was.
Notification types
/nr types chat,title,toast sets the default. Add -t title,toast before a message to override it for one reminder.
Sound
/nr sound shows the current setting. /nr sound on, off, volume <0-100> and
type <sound> change it, and setting the volume or the sound plays it immediately so you can
judge it without waiting.
type takes a short name (bell, chime, xp, ding, pling, levelup, and more) or any
sound id the game knows, such as block.anvil.fall or music_disc_lava_chicken.
Colours
Minecraft's formatting codes work in the message: &cred, &lbold, &r to reset. An
ampersand that is not a code is left alone, so Tom & Jerry works.
Reminders live in config/notifreminder.json and are shared across every world and server.
Requirements
- Minecraft 26.1.2 (this build targets 26.1.x only)
- Fabric Loader 0.19.3 or newer
- Fabric API
- Java 25
评论 0
登录后参与评分
还没有评论,来抢沙发吧