
ModsJava
Auto AFK
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.

Mod to turn off damage during afk.
The Fabric version requires the Fabric API.
To change the config, you need to follow the path .minecraft/config/autoafk/config.json(default is 60 sec)
OR
If the mod version is 2.2.0 and higher, then you can configure it through the commands:
Commands/afk (Switch to afk mode)
/afk setdelay {time} (Set delay to switch to afk mode)
/afk setsuffocating {true/false} (Set up choke protection) (Deprecated)
/afk setcollide {true/false} (Set up collision with mobs) (In versions higher than 1.2.4)
/afk setmobsaggression {true/false} (Set up protection against mob aggression) (In versions higher than 1.2.4)
- TRUE - Enable protection
- FALSE - Disable protection

Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.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 Modrinth — 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.
Verified by MCModsHub
- Ships as autoafk-2.3.1-skeleton+1.21.1.jar — drop this file into the mods folder
- Download size: 1010 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.