AFK Utilitys
Advanced AFK management mod for Minecraft Fabric with anti-kick protection, auto-reconnect, safety disconnect, and hunger management
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.
AFK Utilitys
AFK Utilitys
[](https://www.oracle.com/java/technologies/downloads/#java21) [](https://modrinth.com/mod/afk-utilitys)
An advanced utility mod for Minecraft Fabric that manages AFK (Away From Keyboard) states with intelligent automation and safety features.
> Settings Keybind: `K`
Use Cases
- Farm Automation: Prevent kicks from AFK timeout systems - Farm Automation: Auto-disconnect when health drops or taking damage - Farm Automation: Never lose your spot during server restarts - Farm Automation: Keep your hunger bar full while away - Farm Automation: Maintain activity for passive mob farms and auto-clickers
Features
Anti-AFK System
Simulates natural player activity to prevent server kicks:
- Chat Messages: Randomized jumping intervals for natural appearance - Chat Messages: Periodic hand swinging with Chat Messages (right-click) interaction. Perfect for flipping levers or interacting with buttons automatically. - Chat Messages: Configurable crouch timing and intervals - Chat Messages: Automatic left-right movement to avoid coordinate-based detection - Chat Messages: - Chat Messages: Rotates your camera view visually - Chat Messages: Sends rotation packets while keeping your screen static - Chat Messages: Send periodic messages with custom text - Interval range: 0.1 to 30 minutes - Custom message support
Auto Reconnect
Smart reconnection system for uninterrupted gameplay:
- Configurable Delay: Automatically remembers last connected server - Configurable Delay: Visual countdown on disconnect screen - Configurable Delay: Enable/disable directly from disconnect screen - Configurable Delay: Set custom wait time before reconnection attempt
Auto Log (Safety Disconnect)
Protect your character while away:
- Death Prevention: Disconnect when health drops below configured value - Death Prevention: Disconnect immediately upon taking any damage - Death Prevention: Optional Auto Reconnect disable after Auto Log trigger - Death Prevention: Keeps you safe in dangerous situations
Auto Eat
Intelligent hunger management:
- Efficient Consumption: Only eats when hunger restoration won't be wasted - Efficient Consumption: Exclude specific items (e.g., Rotten Flesh, Spider Eyes) - Efficient Consumption: Calculates optimal eating times based on food value
Installation
Requirements
- Minecraft 1.21+ - Fabric Loader 0.16.0+ - FabricAPI
Download
Download the mod from Modrinth and place the `.jar` file into your `.minecraft/mods` folder.
Configuration
The mod features a sidebar-based configuration UI with four main categories:
1. Auto-Log: Configure all anti-kick features and intervals 2. Auto-Log: Set hunger thresholds and manage food blacklist 3. Auto-Log: Adjust reconnection delay and toggle auto-reconnect 4. Auto-Log: Configure health thresholds and safety settings
Configuration File
Settings are saved to:
``` .minecraft/config/afkutility.json ```
Example configuration:
```json { "antiAfk": { "autoJump": true, "autoSwing": true, "autoSneak": false, "sneakTime": 2.0, "strafeMode": false, "spinMode": "OFF", "chatMessages": false, "messageInterval": 5.0, "customMessage": "I am not AFK" }, "autoReconnect": { "enabled": true, "delay": 5 }, "autoLog": { "enabled": true, "healthThreshold": 4.0, "onDamage": false, "disableReconnect": true }, "autoEat": { "enabled": true, "blacklist": ["minecraft:rotten_flesh", "minecraft:spider_eye"] } } ```
For Developers
Building
```bash ./gradlew build ```
Output: `build/libs/afk-utility-1.0.0.jar`
Project Structure
``` src/client/java/dev/afk/utility/ ├── AFKUtilityClient.java # Client entrypoint ├── config/ │ └── ModConfig.java # Configuration management ├── features/ │ ├── AntiAFK.java # Anti-AFK implementations │ ├── AutoReconnect.java # Reconnection handler │ ├── AutoLog.java # Safety disconnect │ └── AutoEat.java # Hunger management ├── mixin/client/ │ ├── DisconnectScreenMixin.java # UI integration │ └── ClientPlayerMixin.java # Player event hooks └── screen/ └── ConfigScreen.java # Sidebar configuration UI ```
License
MIT
Credits
- Fabric API Team - Minecraft Modding Community