Minecraft

How do I enable one-player-sleep / a sleep percentage?

Tired of waiting for everyone to climb into bed before the night skips? On modern Minecraft you can let a single player (or any percentage of players) skip the night with one gamerule.

How one-player-sleep works

On Minecraft 1.17 and newer, the playersSleepingPercentage gamerule controls how many players need to sleep before the night passes. Set it to 0 and a single sleeping player skips the night; set it to a higher number for a percentage-based threshold.

Step-by-step

  1. Make sure you're OP — in the Console, run op yourname if needed.
  2. In the Console (or in-game as OP), run:
  • /gamerule playersSleepingPercentage 0 — one player skips the night.
  • Or set a percentage, e.g. /gamerule playersSleepingPercentage 50 for half of players.

Tip: Running the command from the panel Console always works, since the Console has operator rights automatically.

Frequently asked questions

I'm on an older version — can I still do this? Not with a gamerule. On versions before 1.17 you'll need a plugin or mod to get one-player-sleep behavior.

Does 0 mean nobody can sleep? No — 0 means the required percentage is effectively zero, so any single player sleeping is enough to pass the night.

Where do I run the command? Either in the panel Console or in-game as an operator. The Console is the most reliable place.