# Server mod to turn off damage during afk.
## The Fabric version requires the [Fabric API](https://modrinth.com/mod/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:
<details>
<summary>Commands</summary>
- #### /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*
</details>
<img alt="Shows an illustrated sun in light mode and a moon with stars in dark mode." src="https://cdn.modrinth.com/data/8zpoj8HB/images/ea71061ef2120d4c2745bbf9be2b10e81e96fde4.gif">
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }