Skip to main content

Custom Sleep Percentage

by Community

Set a custom percentage of players that need to sleep to skip the night. Configure from 0% to 100%.

Overview

Custom Sleep Percentage gives server owners direct control over how much of the player base must climb into beds before the night is skipped. Instead of editing config files, you set any value from zero to one hundred percent through an in-game command or chat, with zero effectively enabling one-player sleep. Chat notifications keep everyone informed of how many more sleepers are needed. The setting honors every bed type, so the rule behaves consistently across overworld biomes and builds.

Suited to multiplayer servers and SMPs that want a tunable middle ground between strict all-sleep and full one-player-sleep night skipping. It comes from Community, sits in the Gameplay category, and is rated a simple, drop-in pack to run. Everything happens through vanilla data pack functions, so no mod loader such as Fabric or Forge is required to use it on Minecraft 1.20 through 1.21.4.

Category
Gameplay
Complexity
Simple
Install Method
World & Server
Popularity
Popular

Features

How It Works

Under the hood, Custom Sleep Percentage relies on plain data pack mechanics rather than any client mod. Here is what happens in-game once it is loaded:

  1. 1Writes the vanilla playersSleepingPercentage gamerule to the value you choose between zero and one hundred.
  2. 2Exposes an in-game command or chat trigger that updates the gamerule live without a restart.
  3. 3Broadcasts chat notifications reporting how many players still need to sleep.
  4. 4Relies on the engine's native sleep tally, so all bed types count toward the threshold equally.

Supported Versions

1.201.20.11.20.41.211.21.4

Compatibility

May conflict with other sleep data packs.

  • Conflicts with other sleep data packs that also write the playersSleepingPercentage gamerule, since the last to run wins.
  • Avoid stacking it with one-player-sleep packs that manage the same value to prevent the setting being overwritten.
  • Works alongside packs that change phantom or night mechanics as long as they leave the sleep gamerule alone.

Custom Sleep Percentage is a pure data pack and does not ship a resource pack, so it changes server-side behaviour without altering textures, models or sounds on the client.

Tags

sleepmultiplayerconfigurablepercentage

How to Install

Custom Sleep Percentage installs as a standard Java Edition data pack and runs on both singleplayer worlds and multiplayer servers. Recent 1.21 releases bumped the data pack format, so keep the pack's pack.mcmeta in step with your server version.

  1. 1.Download the Custom Sleep Percentage pack as a .zip and keep it zipped.
  2. 2.Open the target world folder — a singleplayer save under .minecraft/saves, or the world folder on your server.
  3. 3.Drop the .zip into that world's datapacks folder, creating the folder if it does not exist.
  4. 4.Load the world (or run /reload if it is already open) and run /datapack list to confirm it is enabled.

The pack is built for Minecraft 1.20 through 1.21.4, so it loads on vanilla Java without Fabric, Forge or any other mod loader. Installing it sets the playersSleepingPercentage gamerule for the world, and your chosen percentage persists until you change it again with the command.

View full install guide

Frequently Asked Questions

Which versions of Minecraft does it support?

It runs on Java Edition 1.20, 1.20.1, 1.20.4, 1.21, and 1.21.4. The underlying playersSleepingPercentage gamerule exists in all of these.

Do I need a mod to change the sleep percentage?

No. It is a pure vanilla data pack that drives the built-in gamerule, so no Fabric, Forge, or plugin is required.

How do I set one-player sleep?

Set the percentage to zero with the in-game command or chat. At zero, a single sleeping player is enough to skip the night.

Can I change the percentage without restarting the server?

Yes. The command updates the gamerule live, so the new threshold applies immediately for the next night without a restart.

Does it work with all beds and colors?

Yes. It counts sleeping players regardless of bed type or color, so any bed in the overworld contributes to the threshold.

Will it clash with my other sleep pack?

It can. Two packs writing the same playersSleepingPercentage gamerule will fight, so run only one sleep-percentage pack at a time.

Related Data Packs

Need a Minecraft server?

Run this data pack on your own server with Astroworld Hosting.

Try Astroworld Hosting