AFK Wave 将“他们离开了还是只是站在那里?”这个问题变成了你可以实际看到的东西。当你停止提供任何输入——没有移动、没有鼠标视角变化、没有点击——经过可配置的时间后,AFK Wave 会将你标记为离开状态:左上角会出现一个带有空闲计时器的小 AFK 徽章,你的角色会循环挥手,以便其他玩家(以及你自己的第三人称视角)获得一个明确的“马上回来”的信号。
功能
- 检测真正的无操作状态——它会追踪你的位置、视角方向、鼠标光标和鼠标按键。一旦其中任何一项发生变化,你就被视为“回归”,空闲计时器重置为零。
- 一旦空闲时间超过阈值,左上角会出现一个 AFK 徽章,显示你离开的时间(例如
AFK 1m 12s)。它会轻微脉动,以便于发现。
- 在 AFK 状态下,你的角色会定期调用原版的挥动动画,因此在第三人称视角和其他服务器玩家眼中,你会明显地挥手而不是僵立不动。
- 只要你做任何动作就会立即停止——一次鼠标微动或按键即可清除 AFK 状态并停止挥手。
命令与控制
- O - 切换 AFK Wave 的开启/关闭状态。操作栏消息会确认新状态。设置会在重启后保留。
/afkwave - 在聊天中打印当前状态和空闲阈值。
/afkwave threshold <seconds> - 设置被标记为 AFK 前必须空闲的时间长度(1-3600 秒,默认值为 300 = 5 分钟)。设置会保存至 config/afkwave.json。
- 徽章尊重 F1(隐藏 HUD),且仅在你处于世界中时渲染。
设计理念
在服务器上,人们无法判断你是 AFK 还是在思考。僵立的头像看起来与卡顿无异。AFK Wave 提供了一个清晰、友好的提示——对你来说是徽章,对其他人来说是挥手——无需每次去倒水时都输入“brb”。
注意事项
- 纯客户端模组——只需在你的客户端安装。适用于任何 Fabric 服务器,完全兼容原版;服务器无法察觉其存在。挥手使用的是正常的手部挥动数据包,因此其他玩家会自然地看到这一效果。
- 不是宏或防踢工具:它仅动画化空闲指示器,从不发送移动数据或保持登录状态。如果服务器因不活动而踢人,AFK Wave 无法阻止。
- 无 Mixin,除 Fabric API 外无额外依赖。性能开销可忽略不计(每个刻进行几次比较)。
兼容性
Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 - Fabric Loader 0.16+。单个 JAR 文件涵盖所有四个版本。将其放入 mods/ 文件夹,与 Fabric API 并列放置。
AFK Wave turns "did they leave or are they just standing there?" into something you can actually see. When you stop providing any input - no movement, no mouse-look, no clicks - for a configurable amount of time, AFK Wave marks you as away: a small AFK badge with an idle timer shows up in the top-left corner, and your character begins waving its hand on a loop so other players (and your own third-person view) get an unmistakable "be right back" signal.
What it does
- Watches for genuine inactivity - it tracks your position, look direction, mouse cursor and mouse buttons. The moment any of them change, you're "back" and the idle timer resets to zero.
- Once you've been idle past the threshold, a top-left AFK badge appears showing how long you've been away (
AFK 1m 12s). It pulses gently so it's easy to spot.
- While AFK, your character periodically calls the vanilla swing animation, so in third-person and to other players on a server you visibly wave instead of standing frozen.
- Stops the instant you do anything - one mouse twitch or key press clears the AFK state and the wave.
Commands & controls
- O - toggle AFK Wave on/off. An action-bar message confirms the new state. The setting persists across restarts.
/afkwave - print the current state and idle threshold in chat.
/afkwave threshold <seconds> - set how long you must be idle (1-3600 s, default 300 = 5 minutes) before you're marked AFK. Persisted to config/afkwave.json.
- The badge respects F1 (hide HUD) and only renders while you're in a world.
Why
On servers, people can't tell whether you're AFK or just thinking. A frozen avatar reads the same as a lagged-out one. AFK Wave gives a clear, friendly tell - the badge for you, the wave for everyone else - without you having to type "brb" every time you go grab a drink.
Notes
- Pure client-side - install on your client only. Works on any Fabric server, fully vanilla compatible; the server can't tell it's there. The wave uses the normal hand-swing packet, so other players see it naturally.
- Not a macro or anti-kick: it only animates an idle indicator and never sends movement or keeps you logged in. If a server kicks for inactivity, AFK Wave won't stop that.
- No mixins, no extra dependencies beyond Fabric API. Negligible performance cost (a handful of comparisons per tick).
Compatibility
Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 - Fabric Loader 0.16+. One JAR covers all four. Drop into your mods/ folder alongside Fabric API.
评论 0
登录后参与评分
还没有评论,来抢沙发吧