Compatibility
Minecraft: Java Edition
1.21β1.21.1
Platforms
Tags
Creators
Details
Licensed ARR
Published 5 months ago
Updated 5 months ago
π€ 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
Made with β€οΈ for vanilla Minecraft multiplayer servers


