AFK Utilitys
Advanced AFK management mod for Minecraft Fabric with anti-kick protection, auto-reconnect, safety disconnect, and hunger management
截图
介绍
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
- 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.
Configuration
The mod features a sidebar-based configuration UI with four main categories:
- Anti-AFK: Configure all anti-kick features and intervals
- Auto-Eat: Set hunger thresholds and manage food blacklist
- Reconnect: Adjust reconnection delay and toggle auto-reconnect
- 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
常见问题
AFK Utilitys 支持哪些 Minecraft 版本?
AFK Utilitys 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
AFK Utilitys 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
HelixCraft 的其他作品
查看全部 →
Fabric Packet Logger
Deep packet logging mod for Minecraft Fabric - captures all network traffic with full NBT/Component data
Slot Click Macros
A Minecraft Fabric mod that records and replays inventory click sequences to automate repetitive container interactions.
Crystal per Second HUD
Mod that displays End Crystals destroyed per second (CPS) as an in-game HUD overlay, with full multi-version support via Stonecutter.
Container Data Dumper
Copy container and inventory data as Data Components directly to your clipboard - works with any container block or entity in Minecraft 1.20-1.21+

评论
登录后评论和评分