AutoHibernate 是一款服务端 Fabric 模组,当没有玩家连接时,它会自动将 Minecraft 服务器进入深度休眠状态,并在有人加入的瞬间无缝唤醒。通过让服务器休眠,你可以在保持世界与玩家离开时完全一致的同时,显著节省 CPU 和电力资源。
✨ 主要功能
- 零空闲资源占用 — 当服务器为空时,CPU 使用率降至 0%(或接近 0%)。
- 保留世界状态 — 方块更新、实体移动、作物生长以及随机刻都会被完全暂停。
- 冻结区域难度 — 游戏内时间停止流逝,防止在无人游玩时区域难度人为增加。
- 无缝恢复 — 当有玩家连接时,服务器会立即唤醒,不会有任何明显的卡顿或延迟。
- 控制台支持 — 在服务器休眠期间,输入服务器的命令依然可以正常工作。
? 命令
你可以使用 /autohibernate 命令手动控制休眠行为:
| 命令 |
描述 |
/autohibernate |
显示当前状态 |
/autohibernate autopause true |
启用服务器为空时的自动休眠 |
/autohibernate autopause false |
禁用自动休眠 |
/autohibernate sleep |
强制服务器立即进入休眠 |
/autohibernate wake |
立即从休眠中唤醒服务器 |
❓ 常见问题
你能把它更新到更高版本的 Minecraft 吗?
请尝试使用该模组的最新版本!即使 Modrinth 上没有明确列出支持最新的 Minecraft 快照或次要版本,它通常也能完美运行。
你能把它移植到更低版本的 Minecraft 吗?
可能不行,因为这很可能需要移植到完全不同的加载器上。
你能把它移植到 Forge/NeoForge/Paper 吗?
如果将来有时间,我可能会将该模组移植到其他加载器,但目前它仍然是 Fabric 模组。
AutoHibernate is a server-side Fabric mod that automatically puts your Minecraft server into deep hibernation when no players are connected, and seamlessly wakes it up the moment someone joins. By hibernating the server, you save significant CPU and power resources while keeping your world exactly as players left it.
✨ Key Features
- Zero Idle Resource Usage — Server CPU usage drops to 0% (or near 0%) when the server is empty.
- Preserves World State — Block updates, entity movements, crop growth, and random ticks are completely paused.
- Freezes Local Difficulty — In-game time stops ticking, preventing regional difficulty from artificially increasing while nobody is playing.
- Seamless Resuming — The server instantly wakes up without any noticeable lag or delay when a player connects.
- Console Support — Commands entered into the server console continue to work perfectly fine while the server is hibernating.
🎮 Commands
You can manually control the hibernation behavior using the /autohibernate command:
| Command |
Description |
/autohibernate |
Shows the current status |
/autohibernate autopause true |
Enables automatic hibernation when the server is empty |
/autohibernate autopause false |
Disables automatic hibernation |
/autohibernate sleep |
Instantly forces the server to hibernate |
/autohibernate wake |
Instantly wakes the server from hibernation |
❓ FAQ
Can you update this to a newer version of Minecraft?
Try using the latest version of the mod first! It often works perfectly fine even if Modrinth doesn't explicitly list the newest Minecraft snapshot or minor version as supported.
Can you port this to an older version of Minecraft?
Probably not, as this would likely require porting to a completely different mod loader.
Can you port this to Forge/NeoForge/Paper?
I may port this to other mod loaders in the future if I have the time, but for now, it remains a Fabric mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧