Daytime Extender - CiscuLog/Survivor-s-Elegy GitHub Wiki

The Daytime Extender module allows the player to change the length of a minecraft day, set to 60 minutes when launching the pack for the first time. To access the configuration menu, the player must type /function survivors_elegy:config. The config menu will then show up, and the player will be able to modify the length of a daylight cycle as well as the night skipping feature.

Daytime Extender Behaviour

When first logging with the pack in the game, the time will automatically advance to the dawn of the day the pack has been loaded, and the daytime length will be set to 60 minutes. This will grant the player about 35 minutes of daytime.

Changing the daytime extender has the limitation that days can only last multiples of 20 minutes. (i.e. 20, 40, 60, 80...). The configuration menu can be accessed with /function survivors_elegy:config, /function siscu:config or /function siscu:daytime_extender. Any changes on the time length will be announced in chat for all the players to see.

Sleeping

Sleeping will work in a similar way to the vanilla original feature. Sleeping with Survivor's Elegy will wake the player up between daytime 23451 and 23460. This is right after sunrise, when undead entities start to burn by sunlight. However, all players must be sleeping and /gamerule playersSleepingPercentage won't have any effect.

When a player wakes up, a title will show them the current day. A similar title will also show up when the player enters the world for the first time.

Skipping the night can be deactivated in the configuration menu. It can be accessed with /function siscu:config or /function siscu:sleep_config