Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
โ๏ธ Custom Day/Night Mod ๐
Take full control of Minecraft's day/night cycle โ no client mod needed.
A lightweight, server-side only Fabric mod for Minecraft 26.2 that lets you customize exactly how long day and night last in the Overworld. Whether you want marathon building sessions under the sun or short, intense nights โ this mod makes it effortless.
โจ Features
- Two ways to customize โ use speed multipliers or set exact tick-based durations
- Interactive chat menu โ click buttons in chat to adjust settings live, no client mod required
- Live duration preview โ the menu shows the resulting day, night, and full cycle lengths in human-readable time
- Hot-reload config โ change settings on the fly without restarting the server
- Save & restore defaults โ persist changes to disk or reset everything with one click
- Safety limits โ values are clamped to safe ranges to prevent server crashes
- In-game commands โ check status, reload config, set values, and toggle logging from the chat
- Version-stamped logging โ all console and chat messages include the mod name and version
- Vanilla-client friendly โ players don't need to install anything
- Zero world data changes โ safe to add or remove at any time
๐ Getting Started
- Drop the mod
.jarinto your server'smods/folder (requires Fabric Loader โฅ 0.19.3 and Fabric API โฅ 0.158.0). - Start the server โ a default config file will be created automatically.
- Run
/customdaynightin-game โ the interactive settings menu prints in chat. Press T to open chat, then click any button and press Enter to apply. - Alternatively, edit
config/customdaynightmod.propertiesdirectly (see below). - Click [Save] in the menu (then Enter) to persist changes to disk.
โ๏ธ Configuration
File: config/customdaynightmod.properties
# Speed multipliers (1.0 = normal speed, 0.5 = half speed / twice as long)
day_multiplier=1.0
night_multiplier=1.0
# Absolute lengths in ticks (overrides multipliers when > 0)
absolute_day_length=0
absolute_night_length=0
# Log day/night transitions to the server console
log_phase_changes=true
Quick reference: 1 Minecraft tick = 50 ms ยท 20 ticks = 1 second ยท 12,000 ticks = 10 real-time minutes (the default length of both day and night).
How it works
| Setting | What it does |
|---|---|
day_multiplier / night_multiplier |
Scales the speed of time progression. A value of 0.5 makes that phase last twice as long; 2.0 makes it twice as fast. |
absolute_day_length / absolute_night_length |
Sets the phase duration to an exact number of ticks. When set to a value greater than 0, this takes priority over the multiplier. |
log_phase_changes |
When true, prints a message to the server console each time the world transitions between day and night. |
โ ๏ธ Safety Limits
To prevent server instability, all values are automatically clamped to safe ranges:
| Setting | Min | Max | Notes |
|---|---|---|---|
day_multiplier / night_multiplier |
0.01 | 100.0 | Prevents time freeze or extreme speed |
absolute_day_length / absolute_night_length |
20 ticks (1 s) | 2,400,000 ticks (~33 h 20 m) | Set to 0 to disable (use multiplier instead) |
If a value outside the allowed range is entered via command or config file, it is silently clamped and a warning is shown in chat.
๐ Examples
Example 1: Extended day for builders (50 min day / 10 min night)
absolute_day_length=60000
absolute_night_length=12000
โ๏ธ Day lasts 50 minutes (60,000 ticks) โ plenty of time to build.
๐ Night lasts 10 minutes (12,000 ticks) โ standard length.
Example 2: Slow down daytime only (20 min day / 10 min night)
day_multiplier=0.5
night_multiplier=1.0
| Phase | Default | With this config |
|---|---|---|
| โ๏ธ Day | 10 min | 20 min (half speed โ twice as long) |
| ๐ Night | 10 min | 10 min (unchanged) |
Tip: You can mix and match โ for example, use
absolute_day_lengthfor a precise daytime duration while usingnight_multiplierto scale the night.
๐ง Commands
All commands require operator permission level 4 (full ops).
Interactive Menu
| Command | Description |
|---|---|
/customdaynight |
Open the interactive settings menu (same as /customdaynight menu) |
/customdaynight menu |
Open the interactive settings menu |
The menu displays all current settings, grouped into Speed multipliers and Fixed lengths (override). Each row has clickable [โ] and [+] buttons that pre-fill the target command in your chat bar, plus a [โ] button that pre-fills a blank value for typing. Action buttons [Save], [Reload], and [Defaults] work the same way. Click a button, then press Enter to apply.
Prefer minutes over ticks? Use
/customdaynight duration day <minutes>or/customdaynight duration night <minutes>โ accepts decimals (e.g.12.5).
Why not one-click? Vanilla clients show a "Confirm Command Execution" dialog on every
run_commandclick that requires operator permissions. Pre-filling the chat bar avoids that popup and keeps the workflow snappy: click โ Enter.
Hover any value to see what it means and its allowed range. Fixed lengths display OFF when set to 0, meaning the multiplier above controls that phase instead.
A duration summary at the bottom shows the effective day, night, and full cycle lengths (e.g. โ Day: 10m 0s ยท โฝ Night: 10m 0s ยท โฑ Full Cycle: 20m 0s).
Tip: Press T to open chat, click any button, then press Enter.
Configuration Commands
| Command | Description |
|---|---|
/customdaynight duration day <minutes> |
Set the day phase length in real-time minutes (accepts decimals, e.g. 12.5). Uses fixed length under the hood. |
/customdaynight duration night <minutes> |
Set the night phase length in real-time minutes. |
/customdaynight set dayMultiplier <value> |
Set the day speed multiplier |
/customdaynight set nightMultiplier <value> |
Set the night speed multiplier |
/customdaynight set absoluteDayLength <value> |
Set the absolute day length in ticks (0 to disable) |
/customdaynight set absoluteNightLength <value> |
Set the absolute night length in ticks (0 to disable) |
Utility Commands
| Command | Description |
|---|---|
/customdaynight reload |
Reload the config file from disk (discards unsaved changes) |
/customdaynight save |
Save the current in-memory settings to the config file |
/customdaynight defaults |
Reset all settings to default values (does not save to disk) |
/customdaynight status |
Display the current settings menu |
/customdaynight togglePhaseLogging |
Toggle day/night transition messages on or off |
๐ Links
๐ License
This project is licensed under the MIT License.


