Healthy Sleep

Healthy Sleep

Heal HP based on how long you slept in minecraft hours. Works with time accelerating mods.

by
3.7K Downloads
datapackfabricforgeneoforgequiltgame-mechanics
Rent Server with this Mod

Screenshots

Healthy Sleep Logo

About this Mod

Healing when you sleep based on how long (in MC hours) you slept. Not sleeping for a long time means you can't get the Well Rested buff, but sleep too much and you'll wake up groggy!
Healthy Sleep is designed for mods that accelerate time when you sleep, however they are not required.

Works on Minecraft 1.21-1.21.3

A demo gif showcasing how Healthy Sleep works

Demo recorded using Better Days by wendall911 to accelerate time while sleeping.

Features

Sleep Healing

Sleeping for 4 MC hours will heal 2 hearts. Sleeping for 6 MC hours will heal 4 hearts. Getting a full 8 MC hours of sleep will heal 8 hearts. Sleep Healing is independent of your Sleep Score.

Sleep Score

Every player is assigned a "Sleep Score" based on how long in MC hours they've slept. Your Sleep Score decays when you're awake and goes up when you sleep to a maximum of 14 MC hours worth.

Well Rested and Alarm Clocks

When you're notified that "I'm pretty tired..." it means if you sleep a full night you will receive the Well Rested buff! (Luck 5min, Speed + Haste 2.5min) But be careful if you miss your Alarm Clock and oversleep, you wont get the buff and you'll have to wait until you're tired to be eligible to get the buff again.

Can't Sleep and Oversleeping

You can't spend all day in bed! If your Sleep Score is maxed out, you'll wake up groggy and lose out on buffs. And if your Sleep Score is maxed out, you won't be able to sleep! (Feature intended to work with mods that allow sleeping during the day)

Server-Sided

This datapack can be run server-side and does not need to be on the client unless it's to be used in singleplayer. The mod versions are auto-packages of the datapack to be used in mod loaders like Fabric.

Compatibility

Time Acceleration (Full)

Healthy Sleep is designed to work with mods that accelerate time when players sleep like:

Time Skipping (Partial)

Healthy Sleep will mostly function when time is skipped upon sleeping. The Alarm Clock won't work and Oversleeping may trigger excessively when using sleep behavior like these:

Changing Day Length (NOT COMPATIBLE)

Healthy Sleep requires that the minecraft day be 24000 ticks long. Speeding up how quickly that passes is fine, reducing it is not, therefore some mods that change day length may work, some might not depending on their implementation. (I would guess Better Days works, but I haven't tested it)

Future of Healthy Sleep

Features

  • Exhaustion - Going too long without sleeping will induce debuffs until you sleep long enough to clear them.
  • User Configuration - Might add in-game configuration commands

Updates

  • "Will you update/backport this to new/old versions?"

Only if I need it, which means probably no. You're welcome to unzip the pack and try it yourself! Nearly every command has comments explaining their function, making it easy to modify.

  • "Can you add X feature?"

I made this for my private RP server, so I'll likely only take the time to add features if it benefits that. Again, you're welcome to try adding it yourself!

  • "I found a bug! Where do I report it?"

To the Exterminator.

Available Versions

HealthySleep_v4-1.21.xrelease
MC 1.21, 1.21.1, 1.21.2, 1.21.3fabric, forge, neoforge, quilt
November 15, 2024
HealthySleep_v4-1.21.xrelease
MC 1.21, 1.21.1, 1.21.2, 1.21.3datapack
November 15, 2024

How to Install Healthy Sleep on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.3).

3

Install Mod

Open the mod browser in the dashboard and search for "Healthy Sleep". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabricforgeneoforgequilt

Minecraft Versions

1.21.3, 1.21.2, 1.21.1 (+1 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Healthy Sleep server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.3). You can switch loaders with one click in the panel.

Is Healthy Sleep compatible with datapack and fabric and forge and neoforge and quilt?

Healthy Sleep officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.3, 1.21.2, 1.21.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Healthy Sleep – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Healthy Sleep consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Healthy Sleep with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Attribution Non Commercial Share Alike 4.0 International
Server-side
Required

Supported Versions

1.21.31.21.21.21.11.21