Unofficial site, not affiliated with modrinth.com.What is this?
AFK Sleep

AFK Sleep

Sleep while players are idle on your server · Works with custom player sleeping percentages · Handles dimensions, leaving, joining, ...

8.1K
29
  • Version 1.3.2

    release30 марта 2025 г.

    This version drops support for game versions before 1.21, which will give me a good baseline for any future features. I don't plan on introducing anything new any time soon.

    This version also removes the debug logs that I left in. They don't do anything if you don't have a particular tag, but still add a very, very small amount of overhead. So I wanted to get a new release out for myself that doesn't contain them.

  • Version 1.3.2

    release23 декабря 2024 г.

    This version drops support for game versions before 1.21, which will give me a good baseline for any future features. I don't plan on introducing anything new any time soon.

    This version also removes the debug logs that I left in. They don't do anything if you don't have a particular tag, but still add a very, very small amount of overhead. So I wanted to get a new release out for myself that doesn't contain them.

  • Version 1.3.1

    release11 ноября 2024 г.

    This is a patch release for 1.3 that drops support for older versions of the game. Both releases behave the same.

    To recap the changes in 1.3:

    • Players in other dimensions are no longer counted toward the total number of players
    • Changing player conditions will now update the playersSleepingPercentage while players are trying to sleep
      • This means a player leaving and rejoining, or travelling to the nether, will now work correctly!
    • The "relative percentage" (percentage of online, non-AFK players in the same dimension) that have to sleep to pass the night can now be updated directly by changing the playersSleepingPercentage gamerule
      • I kept having to check my own documentation to remember what value had to change. This massively simplifies the experience and removes a big source of surprise.
  • Version 1.3

    release11 ноября 2024 г.

    This version is a massive internal refactor.

    Fixes

    • Players in other dimensions are no longer counted toward the total number of players
    • Changing player conditions will now update the playersSleepingPercentage while players are trying to sleep
      • This means a player leaving and rejoining, or travelling to the nether, will now work correctly!
    • The "relative percentage" (percentage of online, non-AFK players in the same dimension) that have to sleep to pass the night can now be updated directly by changing the playersSleepingPercentage gamerule
      • I kept having to check my own documentation to remember what value had to change. This massively simplifies the experience and removes a big source of surprise.
  • Version 1.2.1

    release17 июня 2024 г.

    Updated to include support for 1.21.0

  • v1.2 for 1.17 to 1.20.1

    release12 марта 2024 г.

    Backported the datapack to 1.17, which is the first version of Minecraft that has the playersSleepingPercentage gamerule. This version of the pack is tecnically compatible later versions as well, but it's not as fast because function macros simplify the logic a lot.

    Code for this version is on the afk-sleep-no-macros branch.

  • v1.2 for 1.20.2-1.20.4

    release28 февраля 2024 г.
    • Added pack.png

    Thankfully not many people have downloaded this so I don't feel bad doing a release for something so small :p

  • v1.1 for 1.20.2+

    release26 февраля 2024 г.

    First public release! 1.1 includes some improvements found in testing.

Совместимость

Minecraft: Java Edition

Платформы

Поддерживаемые окружения

Сервер

Сведения

Лицензия:
Опубликован:2 года назад
Обновлён:1 год назад
ID проекта:
Главная