nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)
Sleep

Sleep

Mod and data pack

Skip the night automatically when a configurable percentage or amount of players sleep! Displays sleeping players + customizable features

Server AdventureGame MechanicsSocialUtility

88.1k downloads
124 followers

Sleep

<picture> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Mqxx/GitHub-Markdown/main/blockquotes/badge/light-theme/tip.svg"> Tip </picture>

Questions or issues? -> discord server | or create an issue on github

Suggestions and ideas to improve the datapack are welcome and the best support

Features

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. 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)

One player is sleeping

2 players are sleeping

Guides

<picture> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Mqxx/GitHub-Markdown/main/blockquotes/badge/light-theme/tip.svg"> Tip </picture>

If something doesn't work, feel free to join the discord server

How to Install a Datapack in Singleplayer
At the Creation of a World

How to install a datapack in singleplayer

  1. Open Minecraft
    Launch the game.

  2. Create a New World
    Navigate to "More" and click on "Data Packs".

    Minecraft Settings Image

  3. Add the Datapack
    Drag the datapack (a .zip file or directory) into the Minecraft window.

    • A confirmation screen will appear. Click "Yes".
  4. 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).

Minecraft Settings Image

  1. Complete World Creation
    • Click "Done" at the bottom of the screen.
    • Continue creating your world and click "Create New World".

⚠️ IMPORTANT ⚠️

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>].

In an Existing World

How to Install a Datapack in an Existing Singleplayer World

  1. Open Minecraft
    Launch the game.

  2. Select Your World

    • Choose the world you want to install the datapack for.
    • Click "Edit", then "Open World Folder".
  3. Add the Datapack

    • Open the folder named datapacks.
    • Place the datapack into this folder. It should be a .zip file or a directory.
  4. Reload the World

    • If you are in the world during installation, type /reload in the chat or press F3 + T to reload resources.
      (Make sure cheats are enabled.)

⚠️ IMPORTANT ⚠️

The datapack only works if cheats are enabled.

You can verify the datapack is active by typing:
/datapack list enabled

How to Enable Cheats Permanently After World Creation

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.

1. You need NBTExplorer

NBTExplorer is an open-source NBT editor for all common sources of NBT data. It's mainly intended for editing Minecraft game data.

2. Open NBTExplorer and open your Minecraft world, where you want to enable Cheats/Admincommands.

NBTExplorer Image

3. Navigate to:

  • <Your Minecraft World>
  • level.dat
  • Data
  • allowCommands

NBTExplorer Navigation Image

4. Click on "Edit Tag Value"

Edit Tag Image

5. Change the Value from 0 to 1 and click "OK"

Change Value Image

6. Now click on "Save All Modified Tags"

Save Image

That's it. You are done. You can now join your world and check if you have permission to change your gamemode, for example.

How to Enable Cheats Temporarily After World Creation

Enabling Cheats Temporarily After World Creation

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.

  1. Join Your World
    Open your single-player world and press "Escape".

  2. Open to LAN
    Click on "Open to LAN".

    Open to LAN Screenshot

  3. Allow Commands
    Set "Allow Commands" to ON.

    LAN World Minecraft Screen

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

LAN World MC Screen

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.

How to Install a Datapack in Multiplayer

How to Install a Datapack in Multiplayer

  1. 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).

  2. Add the Datapack

    • The datapack should be a .zip file.
    • Place the datapack into a folder named datapacks inside the world folder.
  3. Reload the Server

    • Type /reload from the console or as a level 3 operator if the server was running during the installation.
How to Uninstall a Datapack

How to Uninstall a Datapack from Your Singleplayer World or Server

  1. Run the Uninstall Command
    For my datapacks, run the command:
    /function datapack_name:uninstall

  2. Delete the Datapack

    • Delete the datapack from the folder you placed it in.
    • Alternatively, you can run:
      /datapack disable [file/your data pack file/directory name]
  3. Reload the World or Server
    After deleting or disabling the datapack, run:
    /reload

How to Install a Mod on a Minecraft Server

Step-by-Step Guide to Installing a Mod on a Minecraft Server

  1. Download the Mod

    • Make sure to download the correct version of the Mod that matches your server's Minecraft version.
    • Important: The mod file should be a .jar file.
  2. Ensure No Datapacks or Other Mods Conflict

    • Do not have both a datapack and a mod installed at the same time, as they may conflict.
    • Only install one or the other, depending on your server's setup.
  3. Locate the Mods Folder

    • Open your server's root directory.
    • Inside this directory, find the folder named mods.
    • If the mods folder doesn't exist, create one.
  4. Install the Mod

    • Paste the downloaded .jar file for the Mod into the mods folder.
  5. Restart the Server

    • After adding the Mod to the mods folder, restart your Minecraft server for the mod to be activated.
  6. Verify Mod Installation

    • Once the server has restarted, join the server and check if the Mod is working.
    • You can use /mods or a similar command (depending on the mod) to see if the Mod has been successfully loaded.

Additional Tips

  • Backup Your Server: Always create a backup before installing the Mod to avoid data loss in case something goes wrong.
  • Ensure Mod Compatibility: Check that the Mod is compatible with your Minecraft server version and any other mods you have installed.

Config

Run:

/trigger sleep.config

Config for 1.20.1:

Sleep Notifications

Control when you receive notifications about sleep:

/trigger sleep_notification set <value>

Where <value> can be:

  • 0 = Disabled (default)
  • 1 = Chat notification
  • 2 = Sound notification
  • 3 = Chat + sound notification

Required Players for Sleep

Set 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)

Sleep Mode

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 warp

Night Duration

Control how long a night should take:

/scoreboard players set &time_until_skip sleep.config <value>

Where <value> can be:

  • 1 = 2 seconds
  • 2 = 5 seconds (default)
  • 3 = 10 seconds

Uninstallation

To remove the datapack completely:

/function sleep:uninstall

External resources


Project members

Jodek

Owner

Mqx

Initial release helper


Technical information

License
MIT
Project ID