Skip the night when a configurable percentage or amount of players sleep! Displays sleeping players + customizable features + tick accelaration
Questions or issues? -> discord server | or create an issue on github
Suggestions and ideas to improve the datapack are welcome and the best support
1. Sleeping players are displayed over the hotbar
2. Change how many players have to sleep to skip the night in the config
3. Use percentage instead of amount of players
4. Change if the night should be instantly skipped or just accelerated in the config
5. Change how long it should take to skip the night in the config
6. Set for yourself a notification for when you can sleep
7. Change how names should get displayed in the actionbar
8. Change to get heal when sleeping or not
9. With my Sleep Anytime You Want datapack/mod, you can sleep during any time of the day
10. Compatible with my AFK Announcer datapack/mod so players that are afk do not need to sleep to skip the night (you can change that with the config)



Run:
/trigger sleep.config
Control when you receive notifications about sleep:
/trigger sleep_notification set <value>
Where <value> can be:
0 = Disabled (default)1 = Chat notification2 = Sound notification3 = Chat + sound notificationSet how many players need to sleep to activate the night skip:
/scoreboard players set &amount_to_sleep sleep.config <value>
Where <value> is the number of players required (default = 1)
Choose between night skip and time warp modes:
/scoreboard players set &time_control sleep.config <value>
Where <value> can be:
0 = Night skip (default)1 = Time warpControl how long a night should take:
/scoreboard players set &time_until_skip sleep.config <value>
Where <value> can be:
1 = 2 seconds2 = 5 seconds (default)3 = 10 secondsTo remove the datapack completely:
/function sleep:uninstall
If something doesn't work, feel free to join the discord server
Open Minecraft
Launch the game.
Create a New World
Navigate to "More" and click on "Data Packs".

Add the Datapack
Drag the datapack (a .zip file or directory) into the Minecraft window.
Activate the Datapack
Move the datapack to the right-hand side of the screen by clicking the triangle on its icon (visible when hovering over it).

The datapack only works if cheats are enabled.
You can verify the datapack is active by typing:
/datapack list enabled
This command should list an entry named [file/<your datapack file/directory name>].
Open Minecraft
Launch the game.
Select Your World
Add the Datapack
datapacks..zip file or a directory.Reload the World
/reload in the chat or press F3 + T to reload resources.The datapack only works if cheats are enabled.
You can verify the datapack is active by typing:
/datapack list enabled
If you encounter this issue, here is a step by step guide on how to enable Cheats/Admincommands permanently after you have already created a Minecraft world.
⚠️ Before you begin, you should save and backup your world in case something goes wrong.
(I will not take any responsibility for any corrupt worlds. Do this at your own risk!)
But don't worry this works without any problems.
If you don't want to change this permanently check out this guide.
NBTExplorer is an open-source NBT editor for all common sources of NBT data. It's mainly intended for editing Minecraft game data.

<Your Minecraft World>level.datDataallowCommands

0 to 1 and click "OK"

That's it. You are done. You can now join your world and check if you have permission to change your gamemode, for example.
If you encounter this issue, here is a step-by-step guide on how to enable Cheats/Admin commands temporarily after you have already created a Minecraft world.
Join Your World
Open your single-player world and press "Escape".
Open to LAN
Click on "Open to LAN".

Allow Commands
Set "Allow Commands" to ON.

Start LAN World
Click "Start LAN World" to apply the changes.

Now, you should be able to use commands like changing your gamemode. Keep in mind that this is only temporary and will need to be done every time you join the world.
Open Your Server Folder
Navigate to your server folder, then open the folder for the world you wish to install the datapack in (default: world).
Add the Datapack
.zip file.datapacks inside the world folder.Reload the Server
/reload from the console or as a level 3 operator if the server was running during the installation.Run the Uninstall Command
For my datapacks, run the command:
/function datapack_name:uninstall
Delete the Datapack
/datapack disable [file/your data pack file/directory name]Reload the World or Server
After deleting or disabling the datapack, run:
/reload
Download the Mod
.jar file.Ensure No Datapacks or Other Mods Conflict
Locate the Mods Folder
mods.mods folder doesn't exist, create one.Install the Mod
.jar file for the Mod into the mods folder.Restart the Server
mods folder, restart your Minecraft server for the mod to be activated.Verify Mod Installation
/mods or a similar command (depending on the mod) to see if the Mod has been successfully loaded.
Conversation