ModsFinder

AFK Sleep

by clo4

AFK Sleep lets a server skip the night when only the active players are asleep, so idle or AFK players no longer block the skip.

FabricForgeNeoForgeQuiltServer required, client optionalMIT LicenseOpen source1.17 – 1.21.8

What it does

Sleeping players are counted against the percentage set in the playersSleepingPercentage gamerule, and AFK players are left out of that count. When the active players reach the threshold, the night is skipped. Changes such as players leaving, joining, switching AFK state or changing dimension are picked up as they happen, and the calculation respects the original percentage value.

The mod requires Detect AFK Players, which supplies the AFK state that the sleep calculation depends on. The server is the side that runs the logic and needs AFK Sleep, while players may add it to their client but do not have to. Files are published for Fabric, Forge, NeoForge and Quilt, with 26 release versions covering 1.17 – 1.21.8, and the latest file is 1.3.2+mod for 1.21.8.

Key features

  1. Configurable sleep percentage

    The percentage of active players that must sleep is set through the playersSleepingPercentage gamerule, and it can be changed like any other gamerule.

  2. Dimension handling

    Sleep is counted per dimension, so a player who is active in the Overworld is the one whose sleep counts there.

  3. Immediate reaction to state changes

    Players joining, leaving, going AFK or returning are reflected in the sleep count straight away, so a player who leaves does not keep the skip waiting.

  4. Low command overhead

    The logic avoids running commands unless necessary and checks ticks and NBT data only as needed, which keeps the work light on the server.

Compatibility

Latest build for each game version and loader.

1.21.x9 of 9 versions with builds
1.21.81.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.71.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.61.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.51.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.41.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.31.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.21.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.21.11.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
1.211.3.2+mod1.3.2+mod1.3.2+mod1.3.2+mod
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Detect AFK PlayersAFK/idle detection that's extremely performant · Players go AFK after 3 minutes (configurable) without moving their mouse · Extend with plenty of add-ons!
Required

Use cases

Who it’s for: Server owners running multiplayer worlds on Fabric, Forge, NeoForge or Quilt who want the night to pass when the active players have gone to bed.

How it compares

Full comparison

Server Sleep is open source under the MIT License and published for 1.17 – 26.3 on the same four loaders; it works on the server, and players need not install it. Better Multiplayer Sleep is not open source, is licensed under the MIT License, and covers 1.19 – 26.3; it works on the server, and players may add it. Better Sleep is open source under the MIT License, but its files cover only 1.21 – 1.21.8.

ModLoadersGame versionsEnvironmentUpdated
AFK SleepFabric, Forge, NeoForge and Quilt1.17 – 1.21.8Server required, client optional2025-03-30
Server SleepFabric, Forge, NeoForge and Quilt1.17 – 26.3Server required, client optional2025-12-14
Better Multiplayer SleepFabric, Forge, NeoForge and Quilt1.19 – 26.3Server required, client optional2026-03-25
Better SleepFabric, Forge, NeoForge and Quilt1.21 – 1.21.8Server required, client optional2025-08-06

Questions

Does AFK Sleep need Detect AFK Players?

Yes. Detect AFK Players is a required dependency, and AFK Sleep relies on it to know which players are AFK.

Do players need to install AFK Sleep?

Not necessarily. The server must run the mod, while players may add it to their client but are not required to.

How is the sleep percentage changed?

Set the playersSleepingPercentage gamerule to the wanted number. Before the update that introduced the gamerule, the value was managed through a datapack, so the gamerule should be set after updating.

In the catalog

AFK Sleep is one of 5,392 Social mods on ModsFinder, and one of 4,084 Social mods for Fabric. 17,695 mods support Minecraft 1.21.8.

More from clo4

All projects

Similar mods

What the author says

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. To change the percentage of "active" players that need to…
clo4, on the Modrinth page

Official listing

Owner
clo4
Published
2024-02-24
Updated on Modrinth
2025-03-30
Facts verified
2026-10-15

Tags