Terraria Overhaul/Sleeping

Terraria Overhaul introduces a new Sleeping feature, which lets players sleep at nights to fast forward time, and, to a lesser extent, regenerate health.

Initiation
For a player to sleep, they must approach a bed and right-click/Use, not unlike how one would set their spawn point in vanilla. There are, however, multiple requirements for sleeping to work:
 * It must be night, unless the player has the buff from a.
 * The bed must not already be occupied.
 * The bed must be within valid housing, exactly like with setting spawn points using beds in vanilla.
 * There must be no event ongoing, such as a Blood Moon, Solar Eclipse,, or any invasion.
 * There must be no Bosses alive.
 * There must be no enemies close by, in an area of 350 pixels.

Behavior

 * While sleeping, a star-filled background will be shown.
 * While sleeping, a remix of Space (Console) will be played.
 * Players are unable to perform any action while sleeping, but they are able to jump out of their beds at any time to wake themselves.
 * After getting a full rest, the player's spawn point will set to their position.

Trivia

 * The ability to Sleep in beds to fast-forward time was added to vanilla Terraria 's Journey End major update (1.4.0.1), though unlike in Overhaul, it is a separate function from setting spawn points, no visual effects occur while sleeping aside from the player's eyes closing, and bonus health regeneration is not provided.