Home›Java›Mods›AutoMuteOnAfk
AutoMuteOnAfk
ModsJava

AutoMuteOnAfk

Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.

by Nikrecs · on CurseForge

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

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.11 · Fabric⬇ Download for 1.21.1 · Fabric⬇ Download for 1.20.1 · Fabric⬇ Download for 1.21.11 · NeoForge⬇ Download for 1.21.1 · NeoForge⬇ Download for 1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
AutoMuteOnAfk — screenshot 1AutoMuteOnAfk — screenshot 2

JOIN OUR DISCORD

Automatically mutes the game while the Minecraft window is unfocused, then restores your exact volume the moment you come back. When you 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 — so the game never keeps blasting audio in the background, and you never have to touch the volume slider yourself.

📦 Install on the client. No server installation required — it works on any server (vanilla or modded) and in singleplayer.

🎮 Singleplayer note: Works perfectly in singleplayer — just drop it into your mods folder as usual.

ℹ️ Purely client-side: it 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 — it only acts when the window's focus actually changes.

Please report any bugs, errors, or feature suggestions on Discord: https://discord.gg/4XUPywnEyE

How it works:

Localization: fully translated into 10 languages — English, Russian, Simplified Chinese, Spanish, French, German, Japanese, Brazilian Portuguese, Korean, and Italian.

Configuration Config file: config/automuteonafk.json It is created with sensible defaults on first launch and loaded on startup.

You can also toggle the mod in-game without touching the file: open Options > Controls > Key Binds, find the Auto Mute On AFK category, and bind the Toggle Auto Mute On AFK key (unbound by default). Pressing it enables/disables the mod instantly and saves the new state.

Available options

enabled

showMessages

Examples

Default behavior (mute on unfocus, with messages):

{
"enabled": true,
"showMessages": true
}

Mute silently, without any on-screen messages:

{
"enabled": true,
"showMessages": false
}

Keep the mod installed but turned off (re-enable any time with the hotkey):

{
"enabled": false,
"showMessages": true
}
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more