Back to mods
AntiAfk project artwork

Modrinth · Minecraft mod

AntiAfk

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which AntiAfk release should I use?

Updated last month
Latest stable file 1.2.8,26.2
Game version 26.2
Loader Fabric, Quilt

AntiAfk 1.2.8,26.2 targets 26.2 with Fabric, Quilt. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is AntiAfk required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does AntiAfk 1.2.8,26.2 need?

1.2.8,26.2. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by AntiAfk 1.2.8,26.2
required
Matching file found Matched file: 0.156.0+26.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add AntiAfk without breaking your instance.

Built for AntiAfk 1.2.8,26.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.2.8,26.2. It targets 26.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.2.8,26.2. It opens that exact file at the source.

About this project

What does AntiAfk add?


☕ 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.

Project description from Modrinth.

Pick your setup

AntiAfk by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

56 available setups

Showing the newest 12 of 28 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

AntiAfk versions and loaders

27 of 27 releases match

Looking for an older file? The official Modrinth project page is in Resources.