1.0.0
Compatibility
Changes
JustAFK
A server-side Minecraft Fabric mod (1.21.11) that adds an /afk command with invulnerability, movement blocking, and automatic exit on activity.
Features
/afkcommand — toggle AFK mode on/off- Invulnerability — no damage while AFK
- Movement lock — velocity zeroed every tick, position/rotation snapped back
- Auto-exit — detects keyboard input, mouse movement, and interactions (attack/use/break)
- On-screen title — periodic "You are now AFK" reminder
- Tab-list indicator — AFK names shown in grey/italic
- Chat broadcasts — notifies other players when someone goes AFK or returns
Requirements
| Dependency | Version |
|---|---|
| Minecraft | 1.21.11 |
| Fabric Loader | ≥0.19.2 |
| Fabric API | Any |
Installation
- Install Fabric Loader for Minecraft 1.21.11
- Place the mod
.jarin your server'smods/folder - Restart the server
No client-side installation is required — the mod runs entirely on the server.
Usage
/afk— toggle AFK mode- Move your mouse, press any movement key, or interact with the world to automatically exit AFK
Building
./gradlew build
The compiled jar will be at build/libs/just-afk-1.0.0.jar.
License
MIT
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:vOIoWqci:TKA2U6Nd"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:vOIoWqci:TKA2U6Nd"
}
