Suggested Module: Beds & Sleep

Instant

New Member
Contributor
World
Architecture
OVERVIEW
Surviving through the night is scary work, I usually just setWorldTime 0.5 my way out. Beds and sleeping mechanics would allow players to (without cheating) get through the night quicker. The module would add a core Bed block (or two block "gagged" multiblock), along with sleep mechanics described below under Implementation.

IMPLEMENTATION
Interacting with a bed would put the player to sleep, with obvious screen-darkening effects and re-positioning onto the bed. A "Wake" button would show in the center of the screen along with the current time (formatted nicely). After the screen gradually darkens over a few seconds, sleep would "settle in." Here's where things get interesting.
Depending on the user/server's configuration, the bed can either simply increase the day/night cycle rate, or simulate certain game elements, such as plant growth or machine progress at a higher rate while the player is asleep, while displaying the current time as it flies by on the UI. The user would be able to wake at any moment and the game's timescale would return to normal.

If a server is configured to allow timescale-boosting sleep, then all players would be required to sleep in order for the sleep to change the timescale. A chat message notification that a user is sleeping could be another configurable option to help players coordinate sleep.

This module wouldn't need to rely on any other modules.
 
Last edited:
Top