AFK Utilitys

AFK Utilitys

Advanced AFK management mod for Minecraft Fabric with anti-kick protection, auto-reconnect, safety disconnect, and hunger management

by
3.3K Downloads
fabricmanagementoptimizationutility
Configure a Compatible Minecraft Server

Screenshots

Anti AFK
Auto Eat
Auto Reconnect
Auto Log (Safety Disconnect)

About this Mod

AFK Utilitys


Fabric API auf Modrinth

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

  • Server AFK Protection: Prevent kicks from AFK timeout systems
  • Safety Management: Auto-disconnect when health drops or taking damage
  • Automatic Reconnection: Never lose your spot during server restarts
  • Hunger Management: 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:

  • Auto-Jump: Randomized jumping intervals for natural appearance
  • Auto-Swing: Periodic hand swinging with Use (right-click) interaction. Perfect for flipping levers or interacting with buttons automatically.
  • Auto-Sneak: Configurable crouch timing and intervals
  • Strafe Mode: Automatic left-right movement to avoid coordinate-based detection
  • Spin Mode:
    • Client Mode: Rotates your camera view visually
    • Server Mode: 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:

  • Server Retention: Automatically remembers last connected server
  • Countdown Timer: Visual countdown on disconnect screen
  • Quick Toggle: Enable/disable directly from disconnect screen
  • Configurable Delay: Set custom wait time before reconnection attempt

Auto Log (Safety Disconnect)

Protect your character while away:

  • HP Threshold: Disconnect when health drops below configured value
  • Instant Damage Mode: Disconnect immediately upon taking any damage
  • Safety Lock: Optional Auto Reconnect disable after Auto Log trigger
  • Death Prevention: Keeps you safe in dangerous situations

Auto Eat

Intelligent hunger management:

  • Smart Timing: Only eats when hunger restoration won't be wasted
  • Blacklist Support: 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.

Download on Modrinth

Download on Modrinth

Configuration

The mod features a sidebar-based configuration UI with four main categories:

  1. Anti-AFK: Configure all anti-kick features and intervals
  2. Auto-Eat: Set hunger thresholds and manage food blacklist
  3. Reconnect: 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:

{
  "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

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

Available Versions

AFK Utilitys 0.1.0 for Minecraft 1.21.11release
MC 1.21.11fabric
January 16, 2026
AFK Utilitys 0.1.0 for Minecraft 1.21.10release
MC 1.21.10fabric
January 16, 2026
AFK Utilitys 0.1.0 for Minecraft 1.21.9release
MC 1.21.9fabric
January 16, 2026
AFK Utilitys 0.1.0 for Minecraft 1.21.8release
MC 1.21.8fabric
January 16, 2026
AFK Utilitys 0.1.0 for Minecraft 1.21.7release
MC 1.21.7fabric
January 16, 2026

How to Install AFK Utilitys on Your Client

1

Install the Mod Loader Locally

Install fabric for your local Minecraft version.

2

Download the Matching File

Choose the AFK Utilitys file for fabric and Minecraft 1.21.11.

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

fabric

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+9 more)

Server-side

βœ— Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Does AFK Utilitys need to be installed on the Minecraft server?

No. Modrinth marks AFK Utilitys 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 AFK Utilitys require?

Use a file for fabric and your exact Minecraft version. Supported versions include 1.21.11, 1.21.10, 1.21.9. Files for different loaders are not interchangeable.

AFK Utilitys 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

AFK Utilitys 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

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+2 more