AFK Command
Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.
I don't know my version or loader
Running a server and you're having problems with players going AFK and preventing sleep for others? Fear not, this mod will help a lot for those servers that run without plugins (Or want some extra functionality).
AFK players do not count towards the required amount of players needed to sleep.
This mod is required on both client and server. Other sleep related mods could be incompatible, excercise caution.
Configurations have been added! Now available for NeoForge 1.21.1!
The players can go AFK with the command /afk but an operator or a command block can force a player into AFK status with /afk force <target>.
There are many configurations available to tweak your experience! For example, AFK players can be immune and untargetable, auto AFK on login, cooldowns, AFK players kicked from server after a set time, etc!
The mod won't be updated further in 1.20.1 but will be ported to other versions. If you have a suggestion, I might add it to all versions if is good enough! If you have translations for other languages not available. Let me know with an Issue on GitHub. I'll gladly add it!
Current translations are:
- English by me and proof-read by some friends
- Spanish by me
- German by Junnichi81
- Swedish by _Darkfalcon_
- Portuguese by Zaderos
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.1, 1.20.2, 1.20.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as afk_command-1.20.2-1.1.0.jar — drop this file into the mods folder
- Download size: 421 KB
- Download link checked 26 Sept 2026 — working
These come from our own check of the pack file, not from the source page.