Just Sleep
Tired of waiting for everyone to sleep? Only 50% of active players need to sleep to skip the night. AFK players are automatically detected and ignored.
截图
介绍
💤 AFK Sleep
Sleep through the night with just 50% of players — AFK players don’t count!
✨ Features
- 🌙 50% sleep threshold — Only half of active players need to sleep to skip the night
- 🚶 AFK detection — Players who haven’t moved for 5 minutes are automatically marked as AFK and excluded from the sleep count
- 💬 Chat notifications — Players are informed when they go AFK, return, and when the night is skipped
- ☀️ Morning bonus — Sleeping players get a small Regeneration effect as a reward
- ⚡ Lightweight — Pure datapack, no mods required, runs on vanilla 1.21.x
📦 Installation
- Download the
.zipfile - Place it in your world’s
datapacksfolder:saves/<world_name>/datapacks/ - In-game run:
/reload - You should see:
[AFK Sleep] Datapack załadowany!
⚙️ How it works
| Situation | Result |
|———–|——–|
| 2/4 players sleeping, 0 AFK | Night skips ✅ |
| 1/4 sleeping, 2 AFK (2 active) | Night skips ✅ (1/2 active = 50%) |
| 1/4 sleeping, 0 AFK | Night continues ❌ |
| All players AFK | Nothing happens ❌ |
AFK is detected by checking if a player hasn’t moved for 300 seconds (5 minutes).
🔧 Compatibility
- ✅ Minecraft Java Edition 1.21.x
- ✅ Works on multiplayer servers and single player
- ✅ Compatible with other datapacks
- ❌ Does not work on Bedrock Edition
📝 Notes
- Only Survival and Adventure mode players are counted
- Only players in the Overworld dimension are counted
- Creative/Spectator players are completely ignored
常见问题
Just Sleep 支持哪些 Minecraft 版本?
Just Sleep 支持 Minecraft Java 版 1.21–1.21.1,共 2 个版本。下载时注意选择和你游戏版本一致的文件。
Just Sleep 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
Kerfuss_ 的其他作品
查看全部 →
Clean PvP texturepack
总的来说,这款材质包风格简约美观,同时保留了帮助界面保持清晰整洁的关键功能。对于喜欢干净、有条理风格的玩家来说,这是个不错的选择。
Cave horror optimized (cave horror project 1)
你好,这是 Cave Horror ch1 的优化版本,现在完全不会卡顿。性能流畅,帧率稳定,没有内存泄漏。不再卡顿,实体出现时也不再崩溃。玩的是恐怖,不是卡顿。
PvP 32x Light blue
一款简洁清晰的 32×32 PvP 材质包,采用利落的浅蓝色主题。所有盔甲套装和工具都经过精心重制,让战斗中的画面更加清晰醒目。
Vanilla pvp+
适合 PvP 分级、训练,或单纯享受 PvP。
评论
登录后评论和评分