
Что это
Sleep while players are idle on your server · Works with custom player sleeping percentages · Handles dimensions, leaving, joining, ...
- Тип: мод
- Загрузчик: datapack, fabric, forge, neoforge, quilt
- Версии Minecraft: 1.17 – 1.21.8
- Скачиваний на Modrinth: 10 512
Подробно
Allows players to sleep even when there are players AFK on the server, and respects your original playersSleepingPercentage. If you've got someone that joins then immediately leaves to take a shower, now that won't stop you from being able to skip the night.
- Configurable percentage - Change the gamerule like you would normally - Highly optimized - No commands run unless necessary, no NBT usage, no checks every tick - Reacts to changes - Leaving, joining, changing AFK state, changing dimension, etc - Works correctly - Other data packs don't consider dimensions or state changes
When AFK Sleep is first installed, it uses the playersSleepingPercentage you've set as the percentage of non-AFK players in the overworld that have to be sleeping to skip the night. The table below explains it:
| Players | Not AFK | playersSleepingPercentage | Players required to sleep | | -------------- | --------------- | --------------------------------- | -------------------------------- | | 3 | 3 | 100% | 3 (all three players have to sleep) | | 3 | 2 | 100% | 2 (only the two non-afk players have to sleep) | | 3 | 2 | 50% | 1 (only half of the non-afk players have to sleep) |
To change the percentage of "active" players that need to sleep, just change the gamerule like you normally would, with /gamerule playersSleepingPercentage NUMBER. This gamerule is managed for you, so don't worry if it isn't set to the value you expect.
Before version 1.3: How to change playersSleepingPercentage
Because this datapack overrides the playersSleepingPercentage gamerule, you have to modify a scoreboard value to change its calculations. Replace the number '50' with the percentage you want to set.
mcfunction /scoreboard players set .relativePercentage afksleep.dummy 50
If you want to uninstall the datapack, run /function afksleep:uninstall to delete the backing scoreboards and reset the playersSleepingPercentage automatically.
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Enhanced Vanilla+
Default! But with Quality of life tweaks and visuals 05.12.2026
Quiet Copper Golems and Chests
Drastically Reduces the volume of copper golems and copper chests, but does not completely remove their audio. 05.12.2026
ImprovedVanillaLighting
A simple, performant shader pack to make the game look warmer and smoother. 05.12.2026
StyleLabor Hero
StyleLabor Hero is a superhero modpack with vanilla+, technic mods and other quality of life mods! 05.12.2026
Tweaked Trials
A few tweaks to Tricky Trials update, including repeatedly openable vaults and entity particles 05.12.2026
XaerosMapPlugin
Xaero's Map plugin is a lightweight plugin for servers using Xaero's Minimap and Xaero's World Map. The plugin prevents different worlds… 05.12.2026