Tags
Creators
Details
All versions

1.2.5
Alpha
Auto AFK 1.2.53 years ago 152
Compatibility
Minecraft: Java Edition
1.20
Platform
Fabric
Supported environments
Client and server
Required content
Changes
Server 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 1.1.0 and higher, then you can configure it through the commands:
Commands
-
/afk setdelay {time} (Set delay to switch to afk mode)
-
/afk setsuffocating {true/false} (Set up choke protection)
-
/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

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:8zpoj8HB:R1FGPlI1"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:8zpoj8HB:R1FGPlI1"
}

