EnhancedSleep icon

EnhancedSleep -----

Enhancing the popular singe-player sleep mechanic for survival Minecraft



[​IMG]

Sleeping in Minecraft is boring, both for the one sleeping and for the players that aren't sleeping. For players that aren't sleeping, time just skips ahead instantly once the sleeping players have slept for 3 seconds and some change. Why not spice it up a little?

EnhancedSleep aims to provide a more immersive sleeping experience for everyone on a multiplayer server. By passing time at a variable rate instead of instantaneously, players that are awake are able to visualize and actually experience the passage of time... and so can their crops! As time accelerates while sleeping, so does crop growth. It's as if everyone lived out the night completely.

Also, that pesky rain goes away for a (configurable) duration. Double win.

You can set how fast the night passes, how many players are required to sleep through the night, how long weather is cleared for, if at all, and even disable mob spawning during the time acceleration if needed!

Sleep is now just a little bit more immersive.


[​IMG]

  • Sleep through nights at variable speeds
  • Speed up crop growth relative to how many players are sleeping
  • Set a minimum amount of players required to sleep in order to accelerate time
  • Set caps on the amount of players that will speed up time and increase crop growth
  • Prevent mobs from spawning while the night passes
  • Clear weather for a configurable duration, or not at all
  • Send messages with placeholders to the server chat
  • Display titles/subtitles to the sleeping players


[​IMG]

The plugin automatically changes the gamerule playerSleepingPercentage to 101% at startup to enable the features to work as intended

There's only 1 permission
enhancedsleep.admin - Allows the use of the /enhancedsleep config reload command

Almost everything is configurable in the configuration.yml
Code (YAML):
# Sets the world to be used for time skipping
# This should be set automatically on first run
# If not, set the world name manually here
sleeping-world
: world

# The speed at which the world time will move by, in game ticks
# 20 ticks = 1 second, each Minecraft day is 24,000 ticks long
# Default: 50
sleeping-speed
: 50

# Whether sleeping should also increase the random tick speed
# For example, crop growth would accelerate to match the world time acceleration, acting like the sped up time has passed normally
# Default: true
change-tick-speed
: true

# The default tick speed your world will use when not sleeping
# If you set your 'randomTickSpeed' gamerule to anything other than default, this should be changed too.
# Default: 3
default-tick-speed
: 3

# Whether sleeping should clear any active weather in the world, such as rain or thunder
# Default: true
clear-weather
: true

# The minimum time that  weather should be cleared for, in seconds
# 1200 seconds is 20 minutes, the length of 1 Minecraft day
# [ REQUIRES: 'clear-weather: true' ]
# Default: 1200
clear-weather-min-time
: 1200

# Whether sleeping should clear weather for a random amount of time, using the minimum and maximum values specified
# [ REQUIRES: 'clear-weather: true' ]
# [ REQUIRES: 'clear-weather-min-time > 0' ]
# Default: true
clear-weather-random-time
: true

# The maximum time weather can be cleared for when using random time
# Must be greater than 'clear-weather-min-time'
# Default: 4800
clear-weather-max-time
: 4800

# The amount of players required to be sleeping in order to start time acceleration
# Default: 1
players-required
: 1

# The maximum amount of players that will contribute to time acceleration
# Time will accelerate at 'sleeping-speed' times how many players are sleeping, up to this value
# A value of -1 means no limit
# Default: -1
max-players-bonus
: -1

# The title to display to the player that begins sleeping
#
# Uses MiniMessage formatting. Documentation can be found here: https://docs.advntr.dev/minimessage/index.html
# For easy customization, use the provided Web UI here: https://webui.advntr.dev/
#
# Default: "<color:#924fff>Sleeping through this night...</color>"
sleeping-display-title
: <color: #924fff>Sleeping through this night...</color>

# The subtitle to display to the player that begins sleeping
#
# Uses MiniMessage formatting. Documentation can be found here: https://docs.advntr.dev/minimessage/index.html
# For easy customization, use the provided Web UI here: https://webui.advntr.dev/
#
# Default: "<yellow>Time is accelerated</yellow>"
sleeping-display-subtitle
: <yellow>Time is accelerated</yellow >

# Whether all players should be notified in the chat that a player is sleeping
# Default: true
notify-chat
: true

# The text to send in the chat for the sleeping notification
# [ REQUIRES: 'notify-chat: true' ]
#
# Uses MiniMessage formatting. Documentation can be found here: https://docs.advntr.dev/minimessage/index.html
# For easy customization, use the provided Web UI here: https://webui.advntr.dev/
#
# Allowed placeholders:
#   <player> : The player that began sleeping
#   <sleeping> : The amount of players currently sleeping
#   <required> : The amount of players required to pass the night faster
#
# Default: "<color:#924fff><player> is sleeping</color>"
notify-text
: <color: #924fff><player> is sleeping</color>

# Prevents natural spawning of monster-type entities while players are sleeping through the night
# Since sleeping isn't immediate, there are periods of night where monsters can spawn naturally
# If this is enabled, it will prevent monsters from spawning NATURALLY during the night
# Default: true
prevent-spawning
: true

As noted in the config, any configurable plugin messages use MiniMessage formatting from the Adventure Library. Easy formatting of your messages can be done on the Adventure WebUI


[​IMG]
  • More placeholders for plugin messages
  • Configurable multiplier on crop growth acceleration
  • Potion Effect bonuses for players who contribute to sleeping
... and any other suggestions given by the community!​
Resource Information
Author:
----------
Total Downloads: 216
First Release: Jun 10, 2023
Last Update: Jun 10, 2023
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings