Minecraft Data Packs / Tool

Multiplayer Sleep

    • 12,816 views, 23 today
    • 1,604 downloads, 7 today
    • 17
    • 11
    • 4
    Plagiatus avatar Plagiatus
    Level 49 : Master Engineer
    56

    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
    10/28/2020 4:13 pm
    Level 1 : New Explorer
    Sunset Rose
    Sunset Rose avatar
    How do I download it?
    1
    10/30/2020 11:29 am
    Level 49 : Master Engineer
    Plagiatus
    Plagiatus 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 avatar
    can u make this 1.15 compatible so i can try this out?
    1
    03/06/2020 6:14 pm
    Level 49 : Master Engineer
    Plagiatus
    Plagiatus avatar
    it didn't break in 1.15, so the same version will work for 1.15 as well. :)
    Planet Minecraft

    Website

    © 2010 - 2021
    www.planetminecraft.com

    Welcome