Skip to content

Well Rested

TheIllusiveC4 edited this page Nov 18, 2017 · 1 revision

Overview

Well Rested is a feature that prevents players from sleeping back-to-back (utilizing both sleeping bags/beds and hammocks). When active, players will be unable to go to sleep for a configurable amount of time before they feel tired.

Configuration Options

Well Rested

Set to true to enable a feature that prevents players from sleeping again after a configurable amount of time after sleeping.

Sleepy Factor

An decimal number between 1.0 and 20.0 inclusive that, when Well Rested is set to true, determines how long players must wait after sleeping before sleeping again. The default is 2.0F. The calculation takes the number of ticks that a player slept and divides it by the sleepy factor. The resulting number is how many ticks a player must wait before being able to sleep again. If a player sleeps for less than 500 ticks, the feature does not activate and a player may immediately sleep afterwards.

Clone this wiki locally