AntiAfk

AntiAfk

Anti-AFK mod that stops players from going idle in Minecraft.

by
41.4K Downloads
fabricquiltgame-mechanicstechnologyutility
Configure a Compatible Minecraft Server

Screenshots

Gui

About this Mod


β˜• Support My Work

If you would like to support me and my projects, feel free to buy me a coffee!

Support me on Ko-fi
Check source on GitHub

AntiAfk Mod

The AntiAFK mod is a very lightweight fabric mod that prevents players from going AFK.

How to set up

  • Open Minecraft and navigate to Settings > Controls > Key Bindings or open the gui and toggle it from there.
  • Search for AntiAfk and set a keybind to toggle the mod on and off.
  • Use the assigned keybind to toggle the mod on. The commands and features will only work when the mod is toggled on.

Features

Player Actions

  • Auto Jump β€” Automatically jumps at configurable intervals
  • Sneak Mode β€” Automatically toggles sneaking (note: you wont be able sneak while active)
  • Swing Hand β€” Swings the player's hand.
  • Random Pause β€” Randomly pauses actions.

Movement & Behavior

  • Player Movement β€” Moves the player in a repeating WASD cycle
  • Mouse Movement β€” Randomly moves the camera with configurable range
  • Auto Spin β€” Rotates the player 360Β° with configurable speed
  • Random Interval β€” Randomizes the delay between timed actions (min/max configurable)

Inventory & Eating

  • Auto Eat β€” Automatically eats food from the hotbar when hunger drops below a configurable threshold
  • Random Hotbar β€” Randomly switches between hotbar slots at configurable intervals
  • Offhand Swap β€” Swaps items between main hand and offhand, holds briefly, then swaps back
  • Open Inventory β€” Randomly opens and closes the inventory for a configurable duration

Advanced Timing

  • Action Delay β€” Global delay between timed actions (seconds)
  • Min / Max Secs β€” When Random Interval is on, sets the range of random delays

Chat Messages

  • Auto Chat Messages β€” Sends a random message at set intervals
  • Messages are semicolon-separated (e.g. Hey!;Still here!;Just farming!)
  • Chat Min / Max Secs β€” Controls how often a message is sent

Reconnect & Disconnect

  • Auto Reconnect β€” Automatically reconnects to the last server after being disconnected
  • Reconnect Delay β€” How many seconds to wait before reconnecting
  • Auto Disconnect β€” Disconnects from the server if any player enters a configurable radius around you
  • Disconnect Radius β€” The block radius to disconnect at
  • Ignored Players β€” Semicolon-separated list of player names to ignore for the disconnect check (e.g. Steve;Alex;Notch)

Feature Timing

  • Eat Below HungerLevel β€” Hunger level (out of 20) at which auto-eat triggers
  • Hotbar Min / Max Secs β€” How often the hotbar slot switches
  • Offhand Min / Max Secs β€” How often the offhand swap triggers
  • Offhand Hold Secs β€” How long the item stays in offhand before swapping back
  • Inv Min / Max Secs β€” How often the inventory opens
  • Inv Hold Secs β€” How long the inventory stays open
  • Reconnect Delay β€” How long to wait before auto-reconnecting after a disconnect

Gui for versions above 1.2.1

  • First u will need to set a keybind in the settings for the gui then open it
  • You will also need a bind to toggle the mod if the mod is not enabled by the bind it won't work

Commands for versions under 1.2.0

  • /antiafk interval set <seconds>: Set the jump interval in seconds you can also use Decimals (like 1.2 , 1.3 etc).
  • /antiafk interval random <minSeconds> <maxSeconds> : to set a random interval between set seconds like 1 and 7 seconds.
  • /antiafk swing: Toggle swinging action.
  • /antiafk jump: Toggle auto-jump.
  • /antiafk spin: Toggle auto-spin.
  • /antiafk spin <seconds>: To set the speed which the character will spin
  • /antiafk sneak: Toggle auto-sneak.
  • /antiafk mousemovement <horizontalMultiplier> <verticalMultiplier>: Toggle mousemovement that will move the player camera randomly. use this to disable/enable :"/antiafk mousemovement"
  • /antiafk movement: to move player character left and right.

Contributing

Feel free to contribute to AntiAfk by opening issues for bug fixes or suggestions, or by submitting pull requests with improvements.

Available Versions

AntiAfk 1.2.8,26.2release
MC 26.2fabric, quilt
June 19, 2026
AntiAfk 1.2.7,26.1-26.1.2release
MC 26.1, 26.1.1, 26.1.2fabric, quilt
May 7, 2026
AntiAfk 1.2.6,26.1-26.1.2release
MC 26.1, 26.1.1, 26.1.2fabric, quilt
March 24, 2026
AntiAfk 1.2.5,1.21.11release
MC 1.21.11fabric, quilt
March 23, 2026
AntiAfk 1.2.4,1.21.11release
MC 1.21.11fabric, quilt
March 22, 2026

How to Install AntiAfk on Your Client

1

Install the Mod Loader Locally

Install fabric for your local Minecraft version.

2

Download the Matching File

Choose the AntiAfk file for fabric and Minecraft 26.2.

3

Install Mod

Place the .jar file in your local .minecraft/mods folder and restart Minecraft. No server-side installation is required.

Compatibility

Mod Loaders

fabricquilt

Minecraft Versions

26.2, 26.1.2, 26.1.1 (+25 more)

Server-side

βœ— Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Does AntiAfk need to be installed on the Minecraft server?

No. Modrinth marks AntiAfk as unsupported on the server side. Install it only in your local Minecraft mods folder. Your server can remain unchanged unless the mod page lists an additional dependency.

Which version and loader does AntiAfk require?

Use a file for fabric, quilt and your exact Minecraft version. Supported versions include 26.2, 26.1.2, 26.1.1. Files for different loaders are not interchangeable.

AntiAfk is not working – what should I check?

First check the Minecraft version, loader version and required dependencies. Put the .jar file in your local .minecraft/mods folder and remove older duplicates. Because this mod is client-side, adding server RAM will not fix it.

Minecraft Server for Your Group

AntiAfk stays on your client. Host a compatible world for your group.

Recommended RAM
4 GBfrom €5.2/mo
Minimum 3 GB | per 8 players
Create Server Now
Client Compatibility Guide
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

26.226.1.226.1.126.11.21.111.21.101.21.91.21.81.21.71.21.6+18 more