跳到正文

Custom Day Cycle

This is a datapack that adds the ability to fully customize your day/night cycle, including sleep percentage!

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Custom Day Cycle
_Take full control of time in Minecraft._ This datapack allows you to set the duration of Day and Night independently, while maintaining a fully functional multiplayer sleep system and accurate day counting.

Whether you want a 24-hour real-time server, long summer days with short nights, or a hardcore survival experience with endless nights, this datapack handles it all without mods—just vanilla commands.

✨ Features

  • _Independent Cycles_: Set Day and Night to different lengths (e.g., a 60-minute Day and a 5-minute Night).
  • _Smooth Time Progression_: Time advances smoothly every tick, not in choppy jumps.
  • _Smart Multiplayer Sleep_: Set a required percentage of players to skip the night (0% to 100%).
  • _Includes a cinematic sleep delay_: The night waits 5 seconds after the percentage is met, allowing players to see the “lying down” animation and screen fade before the sun rises.
  • _Accurate Day Counter_: Unlike other time-skipping tools, this pack calculates the exact time for the next morning. Your F3 Day Counter and Local Difficulty will continue to increase correctly.
  • _Lag Friendly_: Optimized to run minimal checks when players aren’t sleeping.

🛠️ Commands
_All settings can be changed on the fly using macro commands. You do not need to edit any files._

Time Settings

  • /function custom_day:set_day {mins:60} Sets the Day (Sun) to last 60 minutes.
  • /function custom_day:set_night {mins:20} Sets the Night (Moon) to last 20 minutes.
  • /function custom_day:set_all {mins:30} Sets Both Day and Night to 30 minutes each.

Sleep Settings

  • /function custom_day:sleep_percentage {percent:50} Sets the percentage of players required to sleep. (Example: 50 = Half the server must sleep)
  • /function custom_day:sleep_percentage {percent:100} Default. Everyone must sleep to skip.
  • /function custom_day:sleep_percentage {percent:1} Only one person needs to sleep to skip.

Administration

  • /function custom_day:init Resets the system, creates scoreboards, and applies defaults.

📦 Installation

  1. Download the .zip file.
  2. Open your world folder (Singleplayer) or server directory.
  3. Place the zip file into the datapacks folder.
  4. Run /reload in-game.
  5. Run /function custom_day:init to complete the setup.

⚠️ Uninstallation
_Because this datapack manages the daylight cycle manually, you must follow these steps to remove it safely, otherwise, the sun will stop moving._

  1. Run this command to restore vanilla time: /gamerule doDaylightCycle true
  2. Delete the datapack file from your datapacks folder.
  3. Run /reload.

📝 Compatibility
Minecraft Version: 1.21+ (Requires Macro arguments support).

Mod Loaders: Works on Vanilla, Fabric, Forge, Paper, and Spigot.

常见问题

Custom Day Cycle 支持哪些 Minecraft 版本?

Custom Day Cycle 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本。下载时注意选择和你游戏版本一致的文件。

Custom Day Cycle 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分