promotional bannermobile promotional banner

Sleep Persist (Players Sleeping %)

Set the 'playerssleepingpercentage' gamerule to be persistent across restarts.

Sleep Persist (Players Sleeping %)

Server-side NeoForge mod for Minecraft 1.21.1 that keeps the playersSleepingPercentage gamerule persistent across reboots. Set it once, and it’ll stick even after restarts and auto-apply to all dimensions on startup.


Features

  • Persistent sleeping % stored in the world save (default 30%)
  • Auto-apply on server startup (first tick)
  • All dimensions covered
  • Zero client requirement (server-only)

Commands (ops only)

  • /sleeppercent get — shows the stored percentage
  • /sleeppercent set 0-100 — persists the value and applies immediately
  • /sleeppercent apply — re-applies the stored value to all loaded worlds

Compatibility

  • Loader: NeoForge (21.1.x)
  • Minecraft: 1.21.1
  • Java: 21
  • Pure server-side; clients don’t need the mod.

Install

  1. Put the jar in your server mods/ folder.
  2. Start the server (accept EULA if needed).
  3. Optional: set your preferred value: /sleeppercent set 50 It’ll persist and survive reboots.

FAQ

Q: Where is the value saved?
A: In your world’s data as sleeppersist.dat (SavedData). Delete it to reset to defaults.

Q: New dimensions added later?
A: They’ll get the current setting when the server next applies it (on restart or /sleeppercent apply).


The Sleep Persist (Players Sleeping %) Team

profile avatar
Owner
  • 6
    Projects
  • 10.1K
    Downloads

More from aNinjinView all

  • Kinetic Origins project image

    Kinetic Origins

    • 1.9K
    • Modpacks

    A streamlined, shader-ready NeoForge 1.21.1 pack that feels like vanilla—only quicker, prettier, and a little bit smarter.

    • 1.9K
    • September 20, 2025
    • Modpacks
    • +2
  • Time Freeze (Empty Server) project image

    Time Freeze (Empty Server)

    • 608
    • Mods

    Pauses day/night and weather when the server is empty.

    • 608
    • August 21, 2025
    • Mods
    • +1
  • AllyCraft: ROG Edition project image

    AllyCraft: ROG Edition

    • 984
    • Modpacks

    A modpack built around being compatible with the Asus ROG Ally with small additions to Vanilla minecraft. This modpack has roughly 100 mods with the majority of them being performance based.

    • 984
    • December 17, 2024
    • Modpacks
    • +1
  • NARK - Revived project image

    NARK - Revived

    • 2.0K
    • Modpacks

    A modpack catered to exploration, building, farming and factories.

    • 2.0K
    • April 17, 2024
    • Modpacks
    • +3
  • Kinetic Origins project image

    Kinetic Origins

    • 1.9K
    • Modpacks

    A streamlined, shader-ready NeoForge 1.21.1 pack that feels like vanilla—only quicker, prettier, and a little bit smarter.

    • 1.9K
    • September 20, 2025
    • Modpacks
    • +2
  • Time Freeze (Empty Server) project image

    Time Freeze (Empty Server)

    • 608
    • Mods

    Pauses day/night and weather when the server is empty.

    • 608
    • August 21, 2025
    • Mods
    • +1
  • AllyCraft: ROG Edition project image

    AllyCraft: ROG Edition

    • 984
    • Modpacks

    A modpack built around being compatible with the Asus ROG Ally with small additions to Vanilla minecraft. This modpack has roughly 100 mods with the majority of them being performance based.

    • 984
    • December 17, 2024
    • Modpacks
    • +1
  • NARK - Revived project image

    NARK - Revived

    • 2.0K
    • Modpacks

    A modpack catered to exploration, building, farming and factories.

    • 2.0K
    • April 17, 2024
    • Modpacks
    • +3