当 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 上报告任何漏洞、错误或提出功能建议:
以下是我推荐的其他模组。
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) — when false, the mod does nothing (also flipped by the toggle hotkey).
showMessages (true) — action-bar messages on mute/restore; set false for 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:
My other mods that I recommend.
评论 0
登录后参与评分
还没有评论,来抢沙发吧