AutoMuteOnAfk
by Nikrecs
When the Minecraft window loses focus, AutoMuteOnAfk mutes the game and restores the exact previous volume once focus returns.
What it does
Alt-tabbing to another app or stepping away from the keyboard sends the master volume to 0%, and the mod keeps the level it replaced. When the window regains focus, that stored value is reapplied unchanged. The saved level persists through world loads, menu screens and a disconnect, and a later AFK kick does not overwrite it. Volume already at 0% is left alone.
The mod is purely client-side: it changes only the game's own master volume and never affects the server or other players. A toggle hotkey, unbound by default under Options, Controls, Key Binds, switches the mod on or off and saves the new state. Architectury API is required alongside it, with Fabric API on Fabric. It works in singleplayer and multiplayer, and since the environment is client-side only, a server installation is not needed.
Key features
Automatic mute on focus loss
Master volume drops to 0% when the game window is unfocused and returns when it is focused again.
Exact volume restore
The previous volume level is stored and reapplied to the same value, not a rounded one.
Optional action-bar messages
A setting shows short messages when the game is muted or restored, and can be turned off for silent operation.
Toggle hotkey
A key binding enables or disables the mod in-game, and the new state is shown in the action bar.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
How it compares
MuteUnFocused is a Fabric, Forge and NeoForge client mod for 1.20 – 26.2 under All rights reserved, so it is not open source. Sound Controller is open source under the GNU Lesser General Public License v3.0 only, for Fabric, NeoForge and Quilt, covering 1.20 – 26.3. Volume Fix is open source under the MIT License and runs on the client across Fabric, Forge, NeoForge and Quilt for 1.19 – 26.2.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AutoMuteOnAfk | Fabric, Forge and NeoForge | 1.19.2 – 26.3 | Client-side only | 2026-09-18 |
| MuteUnFocused | Fabric, Forge and NeoForge | 1.20 – 26.2 | Client-side only | 2026-07-22 |
| Sound Controller | Fabric, NeoForge and Quilt | 1.20 – 26.3 | Client-side only | 2026-09-16 |
| Volume Fix | Fabric, Forge, NeoForge and Quilt | 1.19 – 26.2 | Client-side only | 2026-06-21 |
Questions
Does AutoMuteOnAfk need Architectury API?
Does the server need to install AutoMuteOnAfk?
Which versions does AutoMuteOnAfk support?
In the catalog
AutoMuteOnAfk is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 8,071 mods support Minecraft 26.3.
More from Nikrecs
Similar mods
What the author says
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…
Official listing
- Modrinth page
- modrinth.com/mod/automuteonafk
- Owner
- Nikrecs
- Published
- 2026-06-22
- Updated on Modrinth
- 2026-09-18
- Facts verified
- 2026-10-15
