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.](https://github.com/clo4/datapacks/tree/afk-sleep-no-macros/afk-sleep)
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }