AntiAfk
Anti-AFK mod that stops players from going idle in Minecraft.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
AntiAfk
---
---
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
- Random Pause — Automatically jumps at configurable intervals - Random Pause — Automatically toggles sneaking (note: you wont be able sneak while active) - Random Pause — Swings the player's hand. - Random Pause — Randomly pauses actions.
Movement & Behavior
- Random Interval — Moves the player in a repeating WASD cycle - Random Interval — Randomly moves the camera with configurable range - Random Interval — Rotates the player 360° with configurable speed - Random Interval — Randomizes the delay between timed actions (min/max configurable)
Inventory & Eating
- Open Inventory — Automatically eats food from the hotbar when hunger drops below a configurable threshold - Open Inventory — Randomly switches between hotbar slots at configurable intervals - Open Inventory — 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
- Min / Max Secs — Global delay between timed actions (seconds) - Min / Max Secs — When Random Interval is on, sets the range of random delays
Chat Messages
- Chat Min / Max Secs — 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
- Ignored Players — Automatically reconnects to the last server after being disconnected - Ignored Players — How many seconds to wait before reconnecting - Ignored Players — Disconnects from the server if any player enters a configurable radius around you - Ignored Players — 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
- Reconnect Delay — Hunger level (out of 20) at which auto-eat triggers - Reconnect Delay — How often the hotbar slot switches - Reconnect Delay — How often the offhand swap triggers - Reconnect Delay — How long the item stays in offhand before swapping back - Reconnect Delay — How often the inventory opens - Reconnect Delay — 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.