AFK Utilitys
一款适用于 Minecraft Fabric 的高级实用模组,通过智能自动化和安全功能管理 AFK(离开键盘)状态。
设置快捷键:
K
使用场景
- 服务器 AFK 保护:防止因 AFK 超时系统而被踢出
- 安全管理:当生命值下降或受到伤害时自动断开连接
- 自动重连:在服务器重启期间永不丢失你的位置
- 饥饿管理:在离线期间保持饥饿值满格
- 农场自动化:维持活动状态以支持被动生物农场和自动点击器
特性
防 AFK 系统
模拟自然玩家活动以防止被服务器踢出:
- 自动跳跃:随机化的跳跃间隔,外观更自然
- 自动挥舞:周期性手部挥舞动作,配合使用(右键)交互。完美用于自动翻转拉杆或与按钮互动。
- 自动潜行:可配置的蹲下时间和间隔
- 侧移模式:自动左右移动以避免基于坐标的检测
- 旋转模式:
- 客户端模式:视觉上旋转你的相机视角
- 服务端模式:发送旋转数据包,同时保持屏幕静止
- 聊天消息:发送带有自定义文本的定期消息
- 间隔范围:0.1 到 30 分钟
- 支持自定义消息
自动重连
智能重连系统,确保游戏不间断:
- 服务器保留:自动记住上次连接的服务器
- 倒计时计时器:断开连接屏幕上显示视觉倒计时
- 快速切换:直接从断开连接屏幕启用/禁用
- 可配置延迟:设置尝试重连前的自定义等待时间
自动登出(安全断开)
在你离开时保护角色:
- HP 阈值:当生命值低于配置值时断开连接
- 即时伤害模式:受到任何伤害时立即断开连接
- 安全锁定:触发 Auto Log 后可选禁用自动重连
- 死亡预防:在危险情况下保持你安全
自动进食
智能饥饿管理:
- 智能时机:仅在不会浪费饥饿恢复时才进食
- 黑名单支持:排除特定物品(例如:腐肉、蜘蛛眼)
- 高效消耗:根据食物价值计算最佳进食时间
安装
要求
- Minecraft 1.21+
- Fabric Loader 0.16.0+
- FabricAPI
下载
从 Modrinth 下载模组并将 .jar 文件放入 .minecraft/mods 文件夹。
配置
该模组提供基于侧边栏的配置界面,包含四个主要类别:
- Anti-AFK:配置所有防踢功能和间隔
- Auto-Eat:设置饥饿阈值并管理食物黑名单
- Reconnect:调整重连延迟并切换自动重连
- Auto-Log:配置健康阈值和安全设置
配置文件
设置保存在:
.minecraft/config/afkutility.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"]
}
}
给开发者
构建
./gradlew build
输出:build/libs/afk-utility-1.0.0.jar
项目结构
src/client/java/dev/afk/utility/
├── AFKUtilityClient.java # 客户端入口点
├── config/
│ └── ModConfig.java # 配置管理
├── features/
│ ├── AntiAFK.java # 防 AFK 实现
│ ├── AutoReconnect.java # 重连处理程序
│ ├── AutoLog.java # 安全断开连接
│ └── AutoEat.java # 饥饿管理
├── mixin/client/
│ ├── DisconnectScreenMixin.java # UI 集成
│ └── ClientPlayerMixin.java # 玩家事件钩子
└── screen/
└── ConfigScreen.java # 侧边栏配置 UI
许可证
MIT
致谢
- Fabric API Team
- Minecraft Modding Community
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
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
下载 AFK Utilitys
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧