Mineuniverse
Data Packs
Custom Daylight-Cycle

Custom Daylight-Cycle

DATA PACK
Set your own time for day and night seperat
by Xenton
Download Claim this project
315 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Miscellaneous Utility
Advertisement Remove ads with Premium →
# Minecraft-Custom-Daylight-Cycle since V 26.5.0 runable in V1.21.11, V26.1.x, V26.2.x
Datapack for Minecraft to override the ingame daylight cycle, to make it possible, to have own time for night and day. Example: 30min day and 5min night

 

# Installation:
- Put this datapack in your savegame, in the folder datapacks
- - Example: .minecraft - saves - YourWorld - datapacks - Daylight_Cycle_by_Xenton...

 

- After reload with command "/reload" your world, you can check is the datapack available with the command "/datapack list".
        When you find in green brackets: [file/Daylight_Cycle_by_xenton (world)], than the datapack is correct installed
- You don't need to do anything to initalise this datapack, it will be run automaticly after correct install.

 

# Run:
- The gamerule advance_time will be not changed, only the position off the sun and moon, will be overitten by the datapack.
- For settings, you have 3 options: set datapack pause, set datapack resume and for settings window
    Commands:
        /function x_daylight_cycle:x_dl_c__settings -- Settingwindow (Since 26.5.0)
        /function x_daylight_cycle:x_dl_c__pause -- Paused the calculation from the sun/moon position. The ingame calculation overtaken, when is not disabled
        /function x_daylight_cycle:x_dl_c__resume -- Restart the calculation from the sun/moon position. The ingame calculation will overitten by datapack again
 
    There are predefined positions for sun and moon
    Commands:
        /function x_daylight_cycle:x_dl_c__set_day -- Set the sun on position after sunrise (Tick: 0)
        /function x_daylight_cycle:x_dl_c__set_night -- Set the moon on the position after sundown (Tick: 13000)
        /function x_daylight_cycle:x_dl_c__set_sunrise -- Set the sun, before the sun is rising (Tick: 22900)
        /function x_daylight_cycle:x_dl_c__set_sundown -- Set the sun, before the sun go down and the moon is rising (Tick: 12000)

 

# Old Settings:
- This settings are still available, since BETA, but not so usefull.
- Values possible 1 to 1000 or Greater and only integer, like example 1,2,3,...,1000
- - Note for all Versions: Values greater than 1000 can't calculate correctly
- - Note until 26.4.0: no check exist for wrong values
- - Note since 26.5.0: Check exist, and give text output
- - Commands:
- - - /function x_daylight_cycle:x_dl_c_settings/x_dl_c__set_time_for_day {time:value} -- Set the time length for sun is up in real time minutes
- - - /function x_daylight_cycle:x_dl_c_settings/x_dl_c__set_time_for_night {time:value} -- Set the time length for moon is up in real time minutes

 

Custom_Daylight_Cycle_26-5-0.zip
MC 26.1, 26.1.1, 26.1.2, 26.2, 26.3
Release 2026-05-04 Get
Custom_Daylight_Cycle_26-4-0.zip
MC 26.1, 26.1.1, 26.1.2
Release 2026-04-24 Get

Requirements & install

How to use this data pack in Minecraft
Mods needed
None, works in vanilla
Minecraft
26.1 – 26.3
Install folder
saves/<world>/datapacks

How to install data packs

  1. Download the data pack .zip file (do not extract it).
  2. New world: click Data Packs on the world creation screen and drop the .zip in. Existing world: open .minecraft/saves/<world>/datapacks.
  3. Put the .zip into the datapacks folder of the world (servers: world/datapacks).
  4. Run /reload in game (or rejoin the world) and check it with /datapack list.
Browse more: Data Packs for 26.3 All data packs

More from Xenton

Advertisement Remove ads with Premium →

You Might Also Like