AutoAFK
by Drakobine
AutoAFK switches a player into spectator mode after three minutes without input, so an idle player on a server is shielded from hunger and damage while away.
What it does
Idle detection runs on the server. After three minutes with no activity, the player is moved into spectator mode, and any action on the player's side brings them back to normal play right away. A manual afk command lets a player toggle the same state at will, for example before stepping away from a minigame or roleplay scene.
While a player sits in spectator mode under AutoAFK, hunger and damage do not apply, which keeps an absent character from dying or losing food. The mod is aimed at server owners who want to keep a multiplayer world tidy and protect players who step away. Clients need the mod installed as well, since the environment is client and server and both sides have to run it.
AutoAFK targets Fabric only, with one build, 0.2.0, for 1.20.1. It is not open source; the code is under All rights reserved, and the latest file is dated 2025-05-31 on the beta channel.
Key features
Automatic idle detection
The server tracks inactivity and switches a player to AFK mode once three minutes pass with no input.
Spectator mode while away
Players in AFK mode are put into spectator mode, where hunger and damage do not affect them.
Instant return
Any player action brings the character back from AFK mode immediately, without a command.
Manual afk command
A command lets a player toggle AFK mode by hand, for times when the automatic timer does not fit.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Survival roleplay servers
Characters that stay idle for a while during a scene are not left exposed to hunger or damage.
Minigame servers
Players who step out of a round can wait in spectator mode without being attacked or starved.
Who it’s for: Server owners running survival, roleplay or minigame worlds on Fabric 1.20.1 who want idle players to stay safe and the server to stay organized. Players on those servers install it too.
How it compares
Leave Me Alone is a Fabric mod for 1.21.11 that runs on the client only, under the MIT License, and is not open source. AfkDisconnect is also Fabric-only for 1.21.11 and client-side only, under All rights reserved. AutoAFK covers 1.20.1 and needs both the client and the server, so the two differ in version and environment.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AutoAFK | Fabric | 1.20.1 | Client and server | 2025-05-31 |
| Leave Me Alone | Fabric | 1.21.11 | Client-side only | 2026-04-06 |
| AfkDisconnect | Fabric | 1.21.11 | Client-side only | 2026-01-30 |
Questions
Does AutoAFK need to be installed on the client?
Which loader and game version does AutoAFK support?
Can a player leave AFK mode without a command?
In the catalog
AutoAFK is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 34,764 mods support Minecraft 1.20.1.
More from Drakobine
Similar mods
What the author says
AutoAFK is a server-side mod that automatically switches players to AFK mode after 3 minutes of inactivity. While AFK, players are put into Spectator mode, protecting them from hunger, damage, and death. Any player action immediately brings them back. A handy /afk command is also available for manual toggling. If you…
Official listing
- Modrinth page
- modrinth.com/mod/autoafk
- Owner
- Drakobine
- Published
- 2025-05-30
- Updated on Modrinth
- 2025-05-31
- Facts verified
- 2026-10-15
