Minecraft Data Packs / Tool

Multiplayer Sleep

    • 32,052 views, 12 today
    • 3,862 downloads, 1 today
    • 18
    • 14
    • 6
    Plagiatus's Avatar Plagiatus
    Level 57 : Grandmaster Engineer
    69

    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

    Contact


    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
    Tags

    Create an account or sign in to comment.

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

    Website

    © 2010 - 2024
    www.planetminecraft.com

    Welcome