HomeJavaModsSleepTimer
SleepTimer
ModsJava

SleepTimer

by Tracats787 · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 1.21.4–1.21.11⬇ Download for 1.20.1–1.20.6
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
SleepTimer — screenshot 1SleepTimer — screenshot 2SleepTimer — screenshot 3SleepTimer — screenshot 4SleepTimer — screenshot 5SleepTimer — screenshot 6

⏰ SleepTimer

🌟 Main features

📊 Instant information (H key)

Press H at any time to see:

🛏️ Smart bed timer

When you click on a bed during the day, a message appears indicating exactly how long it will be before you can sleep (e.g., “⏰ You can sleep in 4:23”)

⚠️ Automatic alerts

✏️ 100% customizable messages

Don't like the default messages? Change them!

Examples:


⚙️ Fully configurable

Open the configuration menu from:

Category: Alerts

Option Description
Sunset alert Notification 1 minute before sunset
Sunrise alert Notification at sunrise
Alert sounds Play sound with alerts

Category: Display

Option Description
Show moon phase View moon phase when pressing H
Show rain info View rain time when pressing H
Message when using bed Show sleep time when clicking on bed

Category: Custom messages

Option Description
Bed message text Customize the message when using the bed (use %s for the time)
Sunset alert text Customize the sunset alert
Sunrise alert text Customize the sunrise alert

⌨️ Customizable key

Don't like the H key? Change it easily:

  1. Go to OptionsControls
  2. Find the “SleepTimer” category
  3. Click on the current key
  4. Press the new key you prefer

🌍 Multilingual

Fully translated into 13 languages:

Language Code
🇪🇸 Spanish es_es
🇬🇧 English en_us
🇫🇷 French fr_fr
🇩🇪 German de_de
🇵🇹 Portuguese (Brazil) pt_br
🇮🇹 Italian it_it
🇯🇵 Japanese ja_jp
🇷🇺 Russian ru_ru
🇨🇳 Chinese (Simplified) zh_cn
🇰🇷 Korean ko_kr
🇵🇱 Polish pl_pl
🇹🇷 Turkish tr_tr
🇳🇱 Dutch nl_nl

The mod automatically detects your Minecraft language.


📦 Installation

  1. Install Fabric Loader
  2. Download Fabric API
  3. Download SleepTimer
  4. Place both mods in the .minecraft/mods folder
  5. Enjoy!

ℹ️ Note: Cloth Config API is included in the mod, you don't need to download it separately.


🎮 Requirements

Requirement Version
Minecraft 1.20.1-1.20.6
Fabric Loader 0.18.4+
Fabric API Latest version

🎨 Available color codes

For use in your custom messages:

Code Color
§0 Black
§1 Dark blue
§2 Dark green
§3 Cyan
§4 Dark red
§5 Purple
§6 Orange
§7 Gray
§8 Dark gray
§9 Blue
§a Green
§b Light blue
§c Red
§d Pink
§e Yellow
§f White

Formats:

Code Effect
§l Bold
§o Italic
§n Underline
§m Strikethrough
§r Reset format

📸 Screenshots

Information when pressing H

Pressing the “H” key displays the necessary information.

Bedtime message

Message showing how much time is left to sleep

Settings menu

Command to open settings “/sleeptimer config”

Alerts

Visualization

Messages

🐛 Report bugs

Found a problem?


📜 License

This mod is open source under the CC0-1.0 license.


🙏 Credits


❤️ Do you like the mod?

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more