当 Minecraft 窗口失去焦点时,自动静音游戏;当你重新获得焦点时,立即恢复你之前的音量。切换到其他程序或暂时离开(AFK)——模组会保存当前的主音量并设置为 0%;一旦窗口重新获得焦点,你的上一个音量设置就会被还原。再也不用担心背景音乐在后台大声播放了,也无需手动调节音量滑块。

仅客户端功能 —— 无需在服务器端安装。支持单人游戏和多人游戏,在任何服务器上均可使用。
依赖项: Fabric 需要 Fabric API 和 Architectury API。NeoForge 需要 Architectury API。Forge 不需要任何额外依赖。
免费用于任何整合包 —— 无论是公开还是私有整合包,均无需申请权限。
功能介绍
- 失去焦点时静音 —— 当 Minecraft 窗口失去焦点时(例如 Alt+Tab、切换应用程序、AFK),主音量立即设置为 0%(仅在音量高于 0% 时生效)。
- 重新获得焦点时恢复 —— 当窗口重新获得焦点时,你之前的音量会被精确还原。
- 绝不丢失音量设置 —— 保存的音量水平不会因更换世界、进入菜单或在静音状态下断开连接(例如 AFK 踢出)而丢失;一旦重新获得焦点,音量便会恢复,且不会被覆盖。
- 可选的操作栏消息 —— 状态改变时会显示简短的“游戏已静音”/“游戏音量已恢复”提示(可关闭)。
- 切换快捷键 —— 绑定一个按键以随时启用或禁用模组;新状态会在操作栏中显示。
配置说明
文件:config/automuteonafk.json(首次启动时自动生成默认配置)。
你也可以在游戏中切换模组:选项 → 控制 → 按键绑定 → Auto Mute On AFK → Toggle Auto Mute On AFK(默认未绑定)。按下该键即可启用或禁用模组,并保存新状态。
选项:
enabled(true) — 设为false时,模组将不执行任何操作(也可通过切换快捷键更改此设置)。showMessages(true) — 静音或恢复音量时在操作栏显示消息;设为false可实现静默运行。
详细信息
- 纯客户端功能 —— 仅更改你本地的游戏主音量。它不会影响服务器或其他玩家,也不会在你主动游戏时与音量滑块产生冲突。
- 完全支持 10 种语言翻译:英语、俄语、简体中文、西班牙语、法语、德语、日语、巴西葡萄牙语、韩语和意大利语。
反馈与建议
请在 Discord 上报告任何漏洞、错误或提出功能建议:
Nikrecs 的其他模组: PerformanceHUD · ResizeableSubtitles
以下是我推荐的其他模组。
Automatically mutes the game while the Minecraft window is unfocused, then restores your exact volume the moment you come back. Alt-tab away or go AFK — the mod stores your current master volume and sets it to 0%; when the window regains focus, your previous volume is restored. No more music blasting in the background, and no touching the volume slider yourself.

Client-side only — no server installation required. Works in singleplayer and multiplayer, on any server.
Dependencies: Fabric needs Fabric API and Architectury API. NeoForge needs Architectury API. Forge needs no additional dependencies.
Free to use in any modpack — public or private, no permission needed.
What it does
- Mute on Unfocus — the instant the Minecraft window loses focus (alt-tab, switching apps, AFK), master volume is set to 0% (only if it was above 0).
- Restore on Focus — the instant the window regains focus, your previous volume is restored exactly.
- Never Loses Your Volume — the stored level survives world changes, menus, and even getting disconnected while muted (e.g. an AFK kick) — restored as soon as focus returns, never overwritten.
- Optional Action-Bar Message — a short “Game muted” / “Game volume restored” line when the state changes (can be turned off).
- Toggle Hotkey — bind a key to enable or disable the mod on the fly; the new state is shown on the action bar.
Configuration
File: config/automuteonafk.json (created with defaults on first launch).
You can also toggle the mod in-game: Options → Controls → Key Binds → Auto Mute On AFK → Toggle Auto Mute On AFK (unbound by default). Pressing it enables/disables the mod and saves the new state.
Options:
enabled(true) — whenfalse, the mod does nothing (also flipped by the toggle hotkey).showMessages(true) — action-bar messages on mute/restore; setfalsefor silent operation.
Details
- Purely client-side — only changes your game’s master volume. It never affects the server or other players, and it does not fight the volume slider while you are actively playing.
- Fully translated into 10 languages: English, Russian, Simplified Chinese, Spanish, French, German, Japanese, Brazilian Portuguese, Korean, and Italian.
Feedback
Please report any bugs, errors, or feature suggestions on Discord:
More mods by Nikrecs: PerformanceHUD · ResizeableSubtitles
My other mods that I recommend.
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
下载 AutoMuteOnAfk
Auto Mute On AFK 1.1.1
更新日志
- 降低了最低加载器版本要求。1.1.0 版本要求使用其编译所针对的精确版本的 Fabric Loader、Fabric API、Forge 和 NeoForge(例如在 1.20.1 上需要 Fabric Loader 0.18.4、Fabric API 0.92.7 以及 Forge 47.3.0)。而 1.1.1 版本仅要求使用其支持的任何 Minecraft 版本的最低构建版本。
- Fabric 26.1.2 现在要求 Fabric Loader 0.19.5 或更高版本:Architectury API 20.1.14 在旧版加载器上会导致游戏启动时崩溃,尽管它声称兼容 0.18.5。
修复内容
- Forge 和 NeoForge 1.21.11:每次加载世界时,日志中会显示“Couldn't load mod/automuteonafk pack metadata”(无法加载模组/自动静音包元数据)的错误信息。
保持不变
- 当窗口失去焦点时,游戏声音仍然会被静音;当窗口重新获得焦点时,之前的音量设置会恢复。
- 配置文件和切换键保持不变。
- 支持的 Minecraft 版本和加载器与 1.1.0 相同:没有新增内容,也没有移除任何功能。
兼容性
仅限客户端;服务器端无需安装此模组。
- Fabric:需要 Fabric API 和 Architectury API
- NeoForge:需要 Architectury API
- Forge:仅需 Forge,无其他依赖
| Minecraft | Fabric Loader | Fabric API | Architectury API | Forge | NeoForge |
|---|---|---|---|---|---|
| 1.19.2 | 0.14.9+ | 0.66.0+1.19.2+ | 6.6.92+ (6.x) | 43.1.0+ (43.x) | – |
| 1.20.1 | 0.14.21+ | 0.83.0+1.20.1+ | 9.2.14+ (9.x) | 47.1.0+ (47.x) | – |
| 1.21.1 | 0.15.11+ | 0.102.0+1.21.1+ | 13.0.11+ (13.x) | 52.1.0+ (52.x) | 21.1.1+ (21.1.x) |
| 1.21.11 | 0.17.3+ | 0.139.4+1.21.11+ | 19.0.1+ (19.x) | 61.1.0+ (61.x) | 21.11.0-beta+ (21.11.x) |
| 26.1.2 | 0.19.5+ | 0.154.0+26.1.2+ | 20.1.14+ (20.x) | – | 26.1.2.99+ (26.1.2.x) |
| 26.2 | 0.19.3+ | 0.154.0+26.2+ | 21.0.7+ (21.x) | – | 26.2.0.40-beta+ (26.2.x) |
| 26.3 | 0.19.5+ | 0.160.5+26.3+ | 22.0.1+ (22.x) | – | 26.3.0.0-beta+ (26.3.x) |
1.1.0
无变化
- Unfocus → 存储主音量并设置为 0%(如果 > 0);focus → 恢复。无延迟
- 配置文件:
config/automuteonafk.json—enabled,showMessages - 切换按键绑定默认仍为未绑定状态
- 同样支持 10 种语言
加载器 / 版本
- 新增:Fabric 1.19.2、Forge 1.19.2、Forge 1.21.1、Forge 1.21.11
- 移除:26.1 / 26.1.2(Fabric & NeoForge)。26.2 保留
- Architectury API 现在在 Fabric 和 NeoForge 上是必需的(Forge jar 不使用它)
- Fabric API 按行固定(1.0.0 使用
*)
如果你仍然在使用 26.1.x,请留在 1.0.0 — 或者迁移到 26.2。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧