跳到正文

AutoMuteOnAfk

作者:Nikrecs

Automatically mutes Minecraft when the window loses focus (alt-tab / AFK) and restores your exact volume when you return.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

JOIN OUR DISCORD CURSEFORGE

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.

Restore volume when focused

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: https://discord.gg/HTkn94BXmA

More mods by Nikrecs: PerformanceHUD · ResizeableSubtitles

My other mods that I recommend.

常见问题

AutoMuteOnAfk 支持哪些 Minecraft 版本?

AutoMuteOnAfk 支持 Minecraft Java 版 1.19.2–26.3,共 8 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

AutoMuteOnAfk 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

Nikrecs 的其他作品

查看全部 →