Sweet Dreams is a useful server datapack that allows you to skip the night if most players go to bed. It also works for thunderstorms. By default, to skip the night, 50% of online players must go to sleep. If you wish, you can change this parameter in the config.mcfunction file, which is located in the datapack folder.
How to install Sweet Dreams datapack
- Download the archive with datapack.
- Open the datapacks folder in your save (saves are located at .minecraft/saves).
- Copy the datapack folder there.
- Load your saved game and execute the command /reload.
- Datapak is ready to use (within the chosen save).