Back to mods
SleepTimer project artwork

Modrinth · Minecraft mod

SleepTimer

Complete time management: time, moon phases, day/night alerts, and more

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which SleepTimer release should I use?

Updated 10 months ago
Latest stable file 1.0
Game version 1.21.10, 1.21.11, 1.21.4
Loader Fabric

SleepTimer 1.0 targets 1.21.10, 1.21.11, 1.21.4 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is SleepTimer required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does SleepTimer 1.0 need?

1.0. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Cloth Config API first. We found matching files for this game-version and loader setup.

Cloth Config API Needed by SleepTimer 1.0
required
Matching file found Matched file: 21.11.153+fabric

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add SleepTimer without breaking your instance.

Built for SleepTimer 1.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0. It targets 1.21.10, 1.21.11, 1.21.4 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Cloth Config API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0. It opens that exact file at the source.

About this project

What does SleepTimer add?

⏰ SleepTimer

🌟 Main features

📊 Instant information (H key)

Press H at any time to see:

  • ⏰ Current time in 24-hour format (e.g., 2:30 p.m.)
  • 📅 Day of the world (e.g., Day 5)
  • 🌅 Time until sunset/sunrise (e.g., Sunset in 3:42)
  • 🌙 Current moon phase (Full Moon, First Quarter, New Moon, etc.)
  • 💧 Rain/storm duration (e.g., Raining for 2:15)

🛏️ 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

  • Nightfall: Alert 1 minute before nightfall
  • Sunrise: Notification when it is safe to go out
  • Optional sounds: Bells accompanying alerts

✏️ 100% customizable messages

Don't like the default messages? Change them!

  • Write your own texts for each alert
  • Use color codes (§e=yellow, §a=green, §c=red, §b=blue, §6=orange)
  • Use %s to insert the time wherever you want

Examples:

  • §e⏰ You can sleep in %s → “⏰ You can sleep in 3:42”
  • §cGo to bed in %s! → “Go to bed in 3:42!”
  • §b%s left to dream → “3:42 left to dream”

⚙️ Fully configurable

Open the configuration menu from:

  • Command: /sleeptimer config
  • Mods menu: Mods → SleepTimer → ⚙️ Config

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 Options → Controls
  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?

  • Write to me on Discord: Tracats787
  • Describe the problem and how to reproduce it

📜 License

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


🙏 Credits

  • Developer: Tracats787
  • Configuration API: Cloth Config by shedaniel

❤️ Do you like the mod?

  • 💚 Like it on Modrinth/CurseForge
  • 📢 Share it with your friends!

Project description from Modrinth.

Pick your setup

SleepTimer by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

14 available setups

Showing the newest 12 of 14 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

SleepTimer versions and loaders

2 of 2 releases match

Looking for an older file? The official Modrinth project page is in Resources.