Anti AFK banner
Anti AFK icon

Anti AFK

Create a mod which can stop kicks you from local world when you are in afk, I really want this mod bcz I have afk farms in my overworld and it always kicks...

00
fabricBoth1.21.1mod

Anti AFK

What it does

  • Prevents idle kicks on worlds/servers running the mod by forcing the player idle timeout to 0 every minute as soon as the server starts.
  • Client watches for player input; if you are idle for ~40 seconds it sends a tiny position nudge plus a hand swing so remote servers keep seeing activity.
  • Mod ID: antiafk; works on Fabric 1.21.1 for both client and server.

Usage notes

  • Install on your client for automatic keep-alive nudges; also install server-side (or in singleplayer) to guarantee the server timeout stays disabled.
  • The client nudge moves you by only 0.00125 blocks and swings once per interval to avoid noticeable motion while still counting as activity.

Limitations / tips

  • Servers with aggressive anti-AFK plugins may require more varied activity than the lightweight packets this mod sends.
  • The keep-alive nudges run only while the game is unpaused and you are connected to a world.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.