
Time Control
Want longer or shorter in-game days/nights? So did I.
Обновлён 10 февраля 2024 г. · опубликован 22 августа 2021 г.
Since 1.20.1 there is also a version for Fabric!
Control Minecraft’s day-night cycle using a simple config file, choosing either:
- Set length for day and night in minutes (can be configured independently)
- Or sync in-game time with system clock
No base classes are modified, no ASM/mixin transformations (on the Forge version) and no touching tick lengths.
For years when playing the game I couldn't stand vanilla day length.
No other mod that tried to implement a similar feature satisfied me, either due to breaking other mods or having unnecessary features.
This is my simplistic, non-invasive implementation that relies on the vanilla "doDaylightCycle" gamerule being off. The mod will set it to false on it's own during world startup.
/time command works, sleeping works (sleep should be mostly handled by vanilla)
There is also compatibility with Comforts and Vampirism's day sleeping

Configuration
File:
Starting with 1.20.1 on Forge configuration is saved per-world (serverside config):
.minecraft/saves/{world}/serverconfig/timecontrol-server.toml
On Fabric 1.20.1+:
.minecraft/config/timecontrol.json
If you're using Forge, on Minecraft versions up to and including 1.19.4 you can find it at:
.minecraft/config/timecontrol-common.toml
[system_time]
#Synchronize game world time with system time
sync_to_system_time = true
#Sync time every n ticks
#Range: 1 ~ 864000
sync_to_system_time_rate = 20
[arbitrary_time]
#How long daytime lasts (0 - 12000)
#Range: 1 ~ 178956
day_length_minutes = 30
#How long nighttime lasts (12000 - 24000)
#Range: 1 ~ 178956
night_length_minutes = 25
[miscellaneous]
debug = true
The Fabric version json does not have comments, so you can refer to the above example.
Commands:
There is also an in-game command:
In 1.20+
/timecontrol day_length_minutes [<value>]
/timecontrol night_length_minutes [<value>]
/timecontrol sync_to_system_time_rate [<value>]
/timecontrol sync_to_system_time [<value>]
Up to 1.19.4:
/timecontrol get < sync_to_system_time | night_length_minutes | day_length_minutes >
/timecontrol set < night_length_minutes | day_length_minutes > <value>
At this time it works with both multiplayer and singleplayer (must be installed on both), but on Dedicated Servers due to possible ping and ticks per second discrepancies slight skybox jitter may be noticeable.
FAQ
Q: Forge?
A: Forge, and since 1.20.1 - Fabric.
Q: Can I include your mod in a video?
A: As long as you include a link to the mod/modpack (if it happens to be in one), absolutely
Q: Can I add your mod to a modpack?
A: CurseForge/Modrinth modpacks are cool.
P.S.
If you don't feel confident enough about my mod and may have also become distrustful of all the previously existing mods attempting to give control to daylight cycle length:
I've been using it myself since 1.12.2, always in heavily modded packs (200+ mods), (usually) on a multiplayer server. This should be a vanilla feature in my opinion.
The mod also doesn't have any permanent effects on the game or save, so if you install/remove it without worry.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 1.6.0 | Релиз | 1.20.4 | fabric | 10 февраля 2024 г. | .jar (169 КБ) |
| 1.6.0 | Релиз | 1.20.1 | fabric | 10 февраля 2024 г. | .jar (168 КБ) |
| 1.6.0 | Релиз | 1.20.1 | forge, neoforge | 10 февраля 2024 г. | .jar (134 КБ) |
| 1.5.0 | Релиз | 1.20.4 | fabric | 7 февраля 2024 г. | .jar (164 КБ) |
| 1.5.0 | Релиз | 1.20.1 | fabric | 7 февраля 2024 г. | .jar (164 КБ) |
| 1.4.1 | Релиз | 1.20, 1.20.1 | fabric | 3 июля 2023 г. | .jar (159 КБ) |
| 1.4.0 | Релиз | 1.20, 1.20.1 | fabric | 3 июля 2023 г. | .jar (59 КБ) |
| 1.4.0 | Релиз | 1.20.1 | forge | 27 июня 2023 г. | .jar (131 КБ) |
| 1.3.1 | Релиз | 1.20.1 | forge | 26 июня 2023 г. | .jar (128 КБ) |
| 1.1.3.1 | Релиз | 1.19.2, 1.19.4 | forge | 30 мая 2023 г. | .jar (131 КБ) |
| 1.1.3.0 | Релиз | 1.19.2, 1.19.4 | forge | 8 апреля 2023 г. | .jar (130 КБ) |
| 1.1.3.0 | Релиз | 1.18.1, 1.18.2 | forge | 8 апреля 2023 г. | .jar (130 КБ) |
| 1.1.3.0 | Релиз | 1.17.1 | forge | 8 апреля 2023 г. | .jar (130 КБ) |
| 1.1.2.0 | Релиз | 1.16.5 | forge | 22 августа 2021 г. | .jar (131 КБ) |
| 1.0.0.0 | Релиз | 1.15.2 | forge | 22 августа 2021 г. | .jar (27 КБ) |
Показаны последние 15 из 16 версий. Все версии — на Modrinth.
Ченджлог
1.6.0Релиз1.20.4 · 10 февраля 2024 г.
- Add option to offset hour for system sync
1.6.0Релиз1.20.1 · 10 февраля 2024 г.
- Add option to offset hour for system sync
1.6.0Релиз1.20.1 · 10 февраля 2024 г.
- Fixed singleplayer pausing
- Better calculation for real life multiplier
- Changed config values to use seconds instead of minutes for more granular control
- Add option to offset hour for system sync
1.5.0Релиз1.20.4 · 7 февраля 2024 г.
- Added ignore_server config option and /timecontrolclient command to allow clienside shenanigans
- Better calculation for real life multiplier
- Changed config values to use seconds instead of minutes for more granular control
1.5.0Релиз1.20.1 · 7 февраля 2024 г.
- Added ignore_server config option and /timecontrolclient command to allow clienside shenanigans
- Better calculation for real life multiplier
- Changed config values to use seconds instead of minutes for more granular control
1.4.1Релиз1.20, 1.20.1 · 3 июля 2023 г.
Fixed client tick event not detecting paused singleplayer
1.4.0Релиз1.20, 1.20.1 · 3 июля 2023 г.
Ported to Fabric
1.4.0Релиз1.20.1 · 27 июня 2023 г.
- Ported the forgotten config fix from 1.1.3.1
- Allow most settings to be configured via commands
- Moved config to per-world (server) for streamlined sync
- Some minor refactoring
Полная история изменений — на Modrinth.
Комментарии
Загружаем…