AutoAFK Sleep - 为挂机玩家提供自动使用床与饥饿管理功能 (v1.2.1)
再也不用担心在挂机时熬不过夜晚或饿肚子了!这款客户端模组会在夜幕降临时自动使用附近的床,并管理你的饥饿值,让你在使用键盘离开后依然安全且饱腹。
✨ 主要特性
?️ 智能自动睡眠系统
- 自动检测夜间并尝试入睡
- 必须位于距离床 2 格范围内(Minecraft 的交互范围)
- 仅在主世界生效以确保安全(在其他维度使用床会爆炸!)
- 智能计时系统,优化性能——随着夜晚临近增加检查频率
? 自动进食功能 (v1.2.0 新增,v1.2.1 修复)
- 当饥饿值低于可配置阈值时自动进食
- 智能食物选择算法:
- 优先选择安全、非魔法的食物(面包、肉类、蔬菜)
- 避免有毒物品(腐肉、蜘蛛眼、剧毒马铃薯)
- 保留魔法食物(金苹果、附魔物品)供手动使用
- 可配置设置:
- 饥饿阈值(默认:14/20)
- 最低食物价值筛选
- 可选择包含炖菜和汤类
- 当极度饥饿且无安全食物可用时自动断开连接
- v1.2.1 修复:解决了关键的槽位选择问题 —— AutoEat 现在可以可靠运行
? 聊天监控与自动回复
- 在你挂机时回复私聊消息和 @提及
- 完全可自定义的回复消息
- 内置 30 秒冷却时间以防止刷屏
- 自动告知玩家如何使你断开连接(如有需要)
? 远程断开连接功能
- 设置一个自定义短语,允许受信任的玩家使你断开连接
- 适用于任何类型的聊天消息(公开、私聊,甚至是你自己的消息!)
- 非常适合服务器管理员或需要紧急联系你的朋友
- 默认短语:"afk-logout"(完全可自定义)
⚙️ 灵活的错误处理
当无法入睡时,选择你偏好的操作:
- 无操作 - 仅记录失败日志
- 自动断开连接 - 安全地从服务器断开连接
- 自定义命令 - 执行任意命令(例如
/spawn、/home、/warp afkspot)
⚡ 性能优化 (v1.1.0+)
- 智能调度可将 CPU 占用率降低高达 90%
- 非阻塞操作确保游戏流畅
- 所有功能均可配置的时间参数
- 通过智能轮询间隔将服务器影响降至最低
? 要求
- Minecraft: 1.21.8+
- Fabric Loader: 0.16.0+
- Fabric API: 必需(需单独安装)
- 环境: 仅限客户端(无需安装服务端)
? 快速开始
- 使用 Fabric API 安装该模组
- 加入你的世界/服务器
- 按 K 打开设置或使用
/autoafksleep enable
- 在挂机位置 2 格范围内放置一张床
- 配置你的偏好,然后安心挂机!
? 命令
/autoafksleep enable - 启用模组
/autoafksleep disable - 禁用模组
/autoafksleep status - 检查当前状态
/autoafksleep ui - 打开配置 GUI
/autoafksleep help - 查看所有命令
? 兼容性
本模组仅限客户端,适用于:
- 单人游戏世界
- 多人服务器(无需安装服务端组件)
- Realms(在你有权睡觉的情况下)
- 可与其他模组共存
? 许可证
采用 Apache 2.0 许可协议 —— 你可以自由使用、修改和重新分发,但需注明出处。
? 致谢
特别感谢 MCVerse City 的玩家们在开发过程中进行测试并提供宝贵的反馈!
非常适合用于 AFK 农场、长时间建造任务,或任何你需要暂时离开游戏的时候!在保持服务器在线状态的同时,免受怪物和饥饿的威胁。版本 1.2.1 带来了可靠的 AutoEat 功能,让你在漫长的挂机期间也能保持饱腹!
AutoAFK Sleep - Automatic Bed Usage & Hunger Management for AFK Players (v1.2.1)
Never worry about surviving the night or starving while AFK again! This client-side mod automatically uses nearby beds when night falls and manages your hunger, keeping you safe and fed while you're away from your keyboard.
✨ Key Features
?️ Smart Auto-Sleep System
- Automatically detects nighttime and attempts to sleep
- Must be within 2 blocks of a bed (Minecraft's interaction range)
- Only works in the Overworld for safety (beds explode in other dimensions!)
- Intelligent timing system with optimized performance - checks more frequently as night approaches
? Auto-Eat Feature (New in v1.2.0, Fixed in v1.2.1)
- Automatically eats food when hunger drops below configurable threshold
- Smart food selection algorithm:
- Prioritizes safe, non-magical food (bread, meat, vegetables)
- Avoids poisonous items (rotten flesh, spider eyes, poisonous potatoes)
- Saves magical food (golden apples, enchanted items) for manual use
- Configurable settings:
- Hunger threshold (default: 14/20)
- Minimum food value filter
- Option to include stews and soups
- Auto-disconnect when critically hungry with no safe food available
- v1.2.1 Fix: Resolved critical slot selection issue - AutoEat now works reliably
? Chat Monitoring & Auto-Response
- Responds to direct messages and @mentions while you're AFK
- Fully customizable response message
- Built-in 30-second cooldown to prevent spam
- Automatically informs players how to make you disconnect if needed
? Remote Disconnect Feature
- Set a custom phrase that allows trusted players to disconnect you
- Works with ANY chat message type (public, private, or even your own!)
- Perfect for server admins or friends who need to reach you urgently
- Default phrase: "afk-logout" (fully customizable)
⚙️ Flexible Failure Handling
When unable to sleep, choose your preferred action:
- No Action - Simply logs the failure
- Auto-Disconnect - Safely disconnects from the server
- Custom Command - Executes any command (e.g.,
/spawn, /home, /warp afkspot)
⚡ Performance Optimized (v1.1.0+)
- Intelligent scheduling reduces CPU usage by up to 90%
- Non-blocking operations ensure smooth gameplay
- Configurable timing parameters for all features
- Minimal server impact with smart polling intervals
? Requirements
- Minecraft: 1.21.8+
- Fabric Loader: 0.16.0+
- Fabric API: Required (install separately)
- Environment: Client-side only (no server installation needed)
? Quick Start
- Install the mod with Fabric API
- Join your world/server
- Press K to open settings or use
/autoafksleep enable
- Place a bed within 2 blocks of your AFK spot
- Configure your preferences and go AFK with confidence!
? Commands
/autoafksleep enable - Enable the mod
/autoafksleep disable - Disable the mod
/autoafksleep status - Check current status
/autoafksleep ui - Open configuration GUI
/autoafksleep help - View all commands
? Compatibility
This mod is client-side only and works on:
- Single-player worlds
- Multiplayer servers (no server-side installation required)
- Realms (where you have permission to sleep)
- Works alongside other mods
? License
Licensed under Apache 2.0 - You're free to use, modify, and redistribute with attribution.
? Acknowledgments
Special thanks to the players at MCVerse City for testing and providing valuable feedback during development!
Perfect for AFK farms, long building sessions, or any time you need to step away from the game! Stay safe from mobs and hunger while maintaining your server presence. Version 1.2.1 brings reliable AutoEat functionality to keep you fed during those long AFK sessions!
评论 0
登录后参与评分
还没有评论,来抢沙发吧