Skip to content

Safe AFK

A Minecraft Fabric Mod. Its main function is to allow for safe AFK farming on servers like DonutSMP and 2B2T.

Fabric
Loaders
Fabric
Downloads on Modrinth
664
Followers on Modrinth
1
versions
2
Updated
July 15, 2026Jul 15
Published
in 2026

At a glance

Runs on Fabric
For Minecraft 26.1.2–26.2
Client only — no need to install it on the server
Latest version — 3.1.0+26.1.2 from July 15, 2026
License MIT — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions26.1.2–26.2

safe-afk

safe-afk is a client-only Fabric mod for Minecraft Java Edition 26.2.

It provides nearby-player warnings, optional automatic disconnection when a non-whitelisted player comes too close, and prevents the pause menu from opening automatically when the game window loses focus. All features can be configured through ModMenu.

Versions

Build

$env:GRADLE_USER_HOME = "$PWD\.gradle"
.\gradlew.bat build

The mod jar will be created under build/libs/.

The maintained release jars are:

  • safe-afk-3.1.0+26.1.2.jar for Minecraft Java 26.1.2
  • safe-afk-3.1.1+26.2.jar for Minecraft Java 26.2

The ModMenu configuration screen supports English (en_us) and Simplified Chinese (zh_cn).

To build both maintained release jars from a clean workspace:

.\scripts\build-releases.bat

This project compiles against Mojang's named 26.2 client jar directly because 26.2 does not publish Mojang method mappings or Yarn mappings.

Config

On first launch the mod writes config/safe-afk.json.

{
  "proximity": {
    "enabled": true,
    "range": 128.0,
    "whitelist": [],
    "warningCooldownTicks": 100,
    "actionBar": true,
    "chat": false,
    "sound": true,
    "maxDisplayedPlayers": 3
  },
  "autoDisconnect": {
    "enabled": false,
    "range": 32.0,
    "whitelist": []
  },
  "noEscMenu": {
    "enabled": true
  }
}

The two player whitelists are independent. Both accept player names, dashed UUIDs, or UUIDs without dashes.

FAQ

How to install Safe AFK?

Install Fabric for your Minecraft version, download Safe AFK for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Safe AFK support?

Safe AFK has builds for Minecraft 26.1.2–26.2.

Is Safe AFK needed on the server?

Client only — no need to install it on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More