Data Packs Quality of Life

Custom Day Cycle Length / Longer Days

    • 8,486 views • 15 today
    • 1,056 downloads • 1 today
    • 13
    • 12
    • 5
    ChickenSplash
    Level 24 : Expert Chicken
    4
    Make sure to download the datapack version that matches your Minecraft version, they're not interchangeable.

    Sleeping works exactly the same as in vanilla whether in multiplayer or singleplayer.

    It's currently set to add 1 time tick every 3 game ticks for a total day/night cycle of 60 minutes.


    Adjust the day/night cycle length
    1. Extract the datapack folder, inside the folder navigate through to data\time\function.
    2. Open tick.mcfunction with any text editor.
    3. Change the value on line 4 (last line) of the document. (the value is currently set to "3", higher numbers mean longer days.)
    4. Save it, change will take effect upon reloading the world.

    If, for whatever reason, you would like faster days, I would recommend to set the value in tick.mcfunction to 1 and navigate to time.mcfunction under the same folder.


    Minor Iron Golem Farming Issue
    Under normal circumstances, villagers need to had been in bed on the night prior in order for iron farms to work. Consequently, once the first 10 mins of the day has passed, the game thinks the villagers are sleep deprived and wont produce iron golems until they are able to sleep in a bed again. This makes it the one and only caveat of this data pack as far as I'm aware.

    This, with its current configuration of 60min day/night cycles, means that iron farms run at 67% efficiency assuming nobody skips the nights D:


    Uninstallation
    It's piss easy, just run the following commands after removing the datapack:

    /gamerule advance_time true
    /scoreboard objectives remove cs_time

    and your world is as good as new :))
    CompatibilityMinecraft 1.17
    toMinecraft 26.1
    Tags

    2 Update Logs

    v1.3 : by ChickenSplash 04/29/2026 3:19:58 pmApril 29 @ 7:19 pm UTC

    Fix
    - Now works for Minecraft version 1.21.11 onwards.
    LOAD MORE LOGS

      Have something to say?

    panecakeswithgr33nbeans
    02/15/2025 9:00 am
    Level 1 : New Miner
    I’m having trouble getting the data pack to work, is it even compatible with 1.20.1? I’m pretty new to modded minecraft especially datapacks. I’ve tried /dodaylighcycle false/true, unzipping the file deactivating and reactivating it /trigger spawn doesn’t work for some reason. I’ve even tried creating a new world with it but I just can’t seem to get it to work.. I’ve tried everything i can possibly think of so really this is my last resort. It shows up under /datapack list but it’s marked grey not green or red I don’t know if it’s supposed to do that. I play on forge 47.3.0
    2
    ChickenSplash
    02/16/2025 5:21 pm
    He/Him • Level 24 : Expert Chicken
    history
    Hi, thank you for bringing this to my attention, it's my fault and I wasn't aware that it didn't work for older versions, I've added a link that should now work for older versions.
    1
    Prinzter
    12/13/2024 9:37 am
    He/Him • Level 1 : New Miner
    Ooo can't wait for our world to fall into eternal sunlight
    3
    Sirilius_
    12/12/2024 5:45 pm
    Level 1 : New Miner
    exactly what I needed, I had another pack installed that did the same thing, but I had to set gamerule dodaycycle to true and then false every time I slept.
    A work-around for the xyz 0 0 0 chunk thing if you have cheats enabled, simply set this chunk to your world spawn with /setworldspawn, since the world spawn is always loaded.
    2
    ChickenSplash
    12/13/2024 5:55 am
    He/Him • Level 24 : Expert Chicken
    yay someone found it useful :))

    tbf even if you dont have spawn chunks, ender pearl chunk loaders are now a thing
    1

    Welcome