Minecraft Data Packs / Tool

Multiplayer Sleep

    • 28,485 views, 33 today
    • 3,503 downloads, 5 today
    • 18
    • 14
    • 6
    Plagiatus avatar Plagiatus
    Level 56 : Grandmaster Engineer

    1.12/1.13/1.14/1.15/1.16 Versions available

    What it does

    This Datapack is intended for larger survival servers. It allows the OPs of the server to set a percentage of players required to sleep to skip the night.
    So if you want to skip the night if half of the players playing are in a bed, set the percentage to 50%.

    When a player is trying to pass the night, a message in chat with how many players are left as well as an advancement will make other online players aware of this intent.

    How to set up

    Download the zip file and place it into your world/datapacksfolder. If the world is already running, run reload. That's all you need to do.
    That way it has been set to 10% as a standard. To change that, use the following command in chat (replace XX with your desired percentage):

    scoreboard players set requiredPercent multSleep.count XX

    This number can be changed at any time you want.

    Further Information

    This datapack will...

    • ...always require a minimum of 1 player to sleep.
    • ...round down the required players. So if the percentage is set to 50% and 3 players are online, 1.5 players need to sleep, which the pack rounds down to one.
    • ...clear the weather whenever the night is skipped for 999999 seconds. If you'd rather have the "normal" behaviour of it turning to sun for a limited but random amount of time, you can swap out the skip.mcfunction file for this one.
    • ...not interfere with the phantom timer. If you are in a bed, the timer resets, as always.
    • ...only consider players in the overworld when counting how many players need to sleep.
    • ...add to the time instead of setting it, so you won't loose your time played/ingame days


    If you have any questions, concerns, praise or found a bug, you can contact me directly at contact@plagiatus.net or use my contact form.
    CompatibilityMinecraft 1.13
    toMinecraft 1.16

    Create an account or sign in to comment.

    06/10/2021 2:09 am
    Level 1 : New Miner
    User3009613G avatar
    I am using it in 1.17 part 1, and it is showing an error, "Unknown scoreboard objective 'multSleep.count' "
    07/23/2021 3:03 pm
    Level 56 : Grandmaster Engineer
    Plagiatus avatar
    in 1.17 you don't need to use this anymore, there is a gamerule for it now.
    10/28/2020 4:13 pm
    Level 1 : New Explorer
    Sunset Rose
    Sunset Rose avatar
    How do I download it?
    10/30/2020 11:29 am
    Level 56 : Grandmaster Engineer
    Plagiatus avatar
    you click on "Download: All Versions" and then scroll down to where it says "latest version (1.16+)" and click on that.
    02/09/2020 3:05 pm
    Level 1 : New Explorer
    CABABO2000 avatar
    can u make this 1.15 compatible so i can try this out?
    03/06/2020 6:14 pm
    Level 56 : Grandmaster Engineer
    Plagiatus avatar
    it didn't break in 1.15, so the same version will work for 1.15 as well. :)
    Planet Minecraft


    © 2010 - 2023