Mods / One Bed Sleeping

Tags: #Other #QoL #Tweak #Utility
Author: Apache
Side: Both
Created: Mar 20th 2022 at 5:30 PM
Last modified: Sep 28th at 1:44 AM
Downloads: 23597
Follow Unfollow 167

Latest release (for Vintage Story 1.21.0 and 1.21.1, potentially outdated):
OneBedSleeping_v3.0.1.zip  1-click install


One Bed Sleeping

One Bed Sleeping is a quality-of-life mod designed for multiplayer (SMP) servers. With this mod, only a single player needs to sleep in a bed to skip the night for everyone, making gameplay smoother and more enjoyable for groups. Say goodbye to waiting for every player to sleep—just one person is enough to bring on the morning, helping your server stay active and cooperative.
Support The Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Features
Player Percentage

This setting determines the proportion of online players required to sleep before the night is skipped. By adjusting the percentage, server administrators can tailor the experience to suit larger or smaller groups, ensuring flexibility and convenience for all. Even with a high player count, only a select few need to rest for the server to move on to daylight.

  • Server Admin command: /obs players (0.0 -> 100.0)
  • Minimum of one person.
  • Default: 0.0

Saturation Loss

Sleeping through the night comes at a cost to your hunger. The mod allows you to configure how much saturation is lost during sleep, with every 0.2 increment representing a small bar of hunger over a typical seven-hour rest. For example, sleeping in a straw bed will usually reduce a player's saturation by five bars.

  • Server Admin command: /obs hunger (0.0 -> 2.0)
  • Default : 1.0

Important Notices

Unfortunately, I am unable to release mods for versions of the game that are pre-releases, or release-candidates. I work on updating all of my mods for compatibility, once the stable version of the game has been released. Please do not report any errors that occur while using this mod with untested versions of the game.


Each of my mods has a structured issue tracker system in place. Please do not report errors, crashes, bugs, or issues here on the mod page. Please use the issue tracker that is linked at the top of the page.

image image

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
3.0.1 onebedsleeping 3040 Sep 28th at 1:44 AM OneBedSleeping_v3.0.1.zip 1-click install
Support The Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Change Log
  • Fixed: Command text not displaying correctly
image image
3.0.0 onebedsleeping 206 Sep 20th at 4:05 AM OneBedSleeping_v3.0.0.zip 1-click install
Support The Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Change Log

This is a major update, moving from .NET7 to .NET8, and includes a full re-write of the Gantry MDK.

  • Updated: Ready for game v1.21
image image
2.5.4 onebedsleeping 3125 May 31st at 8:25 PM OneBedSleeping_v2.5.4.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving fowards. Thank you.

Changelog

Fixed: 1.20.11 compatibility fix

2.5.3 onebedsleeping 3415 Mar 20th at 11:41 PM OneBedSleeping_v2.5.3.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving fowards. Thank you.

Changelog

Fixed: 1.20.6 compatibility fix

2.5.2 onebedsleeping 2747 Jan 25th at 2:47 PM OneBedSleeping_v2.5.2.zip 1-click install

For the meme!

2.5.1 onebedsleeping 201 Jan 24th at 5:09 PM OneBedSleeping_v2.5.1.zip 1-click install

Linux messed things up again.

2.5.0 onebedsleeping 308 Jan 23rd at 2:00 AM OneBedSleeping_v2.5.0.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving fowards. Thank you.

Changelog

Game Version Update: Parity update for 1.20.1

2.4.2 onebedsleeping 1854 Sep 23rd 2024 at 11:43 PM OneBedSleeping_v2.4.2.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Changelog

Fixed: Updated Gantry to 0.9.*

2.4.1 onebedsleeping 1975 Mar 28th 2024 at 7:38 PM OneBedSleeping_v2.4.1.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Changelog

Fixed: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces'.

2.4.0 onebedsleeping 787 Feb 17th 2024 at 5:12 PM OneBedSleeping_v2.4.0.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Changelog

Fixed: Compatibility update for v1.19.3.

2.3.0 onebedsleeping 1354 Oct 24th 2023 at 12:51 AM OneBedSleeping_v2.3.0.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving forwards. Thank you.

Changelog

 Compatility update for v1.18.15 No new features in this update. Mostly backend updates, and restructuring the repos.

2.2.0 onebedsleeping 2708 Apr 22nd 2023 at 2:48 AM ApacheTech.VintageMods.OneBedSleeping_v2.2.0.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving fowards. Thank you.

Changelog

 Compatility update for v1.18. No new features in this update.

2.1.2 onebedsleeping 618 Feb 23rd 2023 at 1:58 PM ApacheTech.VintageMods.OneBedSleeping_v2.1.2.zip 1-click install

Support the Mod Author

If you find this mod useful, and you would like to show appreciation for the work I produce; please consider supporting me, and my work, using one of the methods below. Every single expression of support is most appreciated, and makes it easier to produce updates, and new features for my mods, moving fowards. Thank you.

Changelog

 - Added: NullReferenceException when players go inactive while someone is sleeping. Any similar issues will now be logged, but not crash the game.


50 Comments (oldest first | newest first)

💬 Ensorcelled, Nov 5th at 1:14 AM (modified Nov 5th at 1:15 AM)

For the issue below, Aceolu and Joenemba have you actually deleted your config so it generates a new one and modified that? 

Apache I was wondering if the sleep through the night rate can be 1) configured for everyone on the server not just the sleeper?, 2) it can be optionally set to control hydrate or diedrate's thirst as well.
We are using One Bed Sleeping mod so it only takes one person to pass the night for the server, but only they get any benefit and others can starve/die of thrist because they "aren't sleeping".  Just a query about it. 

💬 Aceolu, Nov 1st at 6:50 AM

Having the same issue as below. The config file also just gets reset to 0.0 too every time the server's launched.

💬 Joenemba, Sep 27th at 12:55 AM

Using the command to set percentage doesn't seem to be working for me. It reverts back to 0% right after.

💬 Apache , Sep 26th at 11:58 PM

The hunger change affects all online users, as they all suffer the same problems. I've had a look at the mod, and I can make that same hunger rate change also affect thirst pretty easily.

💬 Ensorcelled, Sep 26th at 5:12 PM

Here you go Apache we are using this mod:  Hydrate or Diedrate - Vintage Story Mod DB 

also, I honestly haven't checked, but does this mod reduce hunger for ALL players or just those sleeping?

I know I'm being a bit lazy not checking, but figured I could ask the guy who would know. LOL

 

💬 Apache , Sep 21st at 10:35 AM

It was tested on a dedicated multiplayer server, with two clients. Set at 51%, both players needed to sleep. At 50%, only one needed to sleep. At 0%, only one needed to sleep.

Delete your cache folders, and your ModsByServer folder for that server. You may still have the 1.20 version cached. If it's still an issue, make a ticket in the issue tracker, and I'll look at your logs.

💬 CrowBrains, Sep 21st at 1:31 AM

Is this working in 1.21.1? Having issues getting this working in multiplayer. Percent set 0 but one person sleeping doesnt seem to trigger time change as expected. No dependencies right? Any known incompatibilities?

💬 Apache , Sep 20th at 4:42 PM

I didn't even know thirst was in the game. Or is that from a mod? If so, can you link to it, please?

💬 Ensorcelled, Sep 20th at 10:03 AM

I like the hunger adjustment, would it be possible to also adjust Diehydration thirst? For all players?
Right now sleeping 14.8 hours is killing people. LOL  Not really your worry, but thought I might ask anyhow.

 

💬 TheCrazyKid, Aug 29th at 7:34 PM

Apache yes there something we use in the book that if you sleep you get 3-10 minutes of boost for anything of xp and that only if you sleep but if you make it where everyone gets that effect or even configable that will be great

 

💬 Apache , Aug 29th at 4:19 PM

TheCrazyKid, what does XSkills add that this interferes with?

💬 TheCrazyKid, Aug 29th at 1:21 PM (modified Aug 29th at 1:22 PM)

xskills compatible???

💬 Apache , May 31st at 8:16 PM

HaraiseTenshi, yes. It will work in any multiplayer environment.

💬 HaraiseTenshi, Apr 19th at 10:14 PM

This Mod should also work for Lan Coop right? Because I presume would be essentially still some kind of multiplayer server?

Please correct me if I am wrong about that :)

💬 Tamajen, Apr 3rd at 4:09 PM

Thank you, I have a better understanding. Appreciate your work.

💬 Apache , Mar 21st at 3:28 PM

Tamajen, this mod does not change anything about how sleeping actually works, behind the scenes. The sleeping mechanic in the game merely increases the game tick speed of the server, so that time passes by really quickly. So however much of the hunger bar everyone would normally use over an 9 hour in-game period, is lost within a few seconds. This is true for any server, or single-player, with no mods installed.

This mod allows you to decrease the rate at which people passively lose hunger, during the time the sleep mechanic is active. You would usually lose around 5 bars of hunger within a nine hour sleep, setting the hunger setting to 0.2 (/obs hunger 0.2) means that everyone would only lose 1 bar of hunger over the same period.

I've added this because on populated servers, it's easy for a lot of day night cycles to pass by quickly, as people sleep. On our server, we found it unmanagable to lose that much hunger every 25 minutes of realtime play. We're a bunch of content creators that need the light to make videos, so we get rid of the nights as much as we can. This allowed us to balance the gameplay, with the necessity of good lighting.

There are other side-effects to sleeping (even in vanilla). Fires will burn fast, metals will heat up, or cool quickly. Everything in the game that relies on a waiting time, will have that waiting time drastically reduced. Apart from one thing, which I'm very gutted about... the cementation furnace for making steel uses real-world time, not in-game time. So that is unaffected. You can't sleep your way to making steel. Grr!

💬 Tamajen, Mar 21st at 2:47 PM

If I understand it a player consumes MORE food while sleeping? or does the player who isnt in the bed consume more? I am sorry but I need a bit more clarification if you would please.

💬 DoktorVanBarron, Mar 21st at 11:29 AM

ah okay, thank you, that's a lot more clear than how it's phrased above.

💬 Apache , Mar 21st at 1:07 AM

DoktorVanBarron,

A sleep vote system asks players if its alright to pass the night rather than requiring number of people in bed:

Player 1 sleeps

Players 2-4 say whether sleeping is ok

Night passes on successful vote

💬 DoktorVanBarron, Mar 20th at 11:57 PM

I'm confused, you say there isn't a sleep voting system.
but time only passes when a certain number of players are in bed.
..isn't that how you vote to pass the night away, by getting into the bed itself?

I'm genuinely confused by how it's worded.

💬 Apache , Mar 15th at 4:24 PM

ChimMAG, I'll sort that soon. Thanks.

💬 ChimMAG, Mar 15th at 1:41 PM

When loading the game on the screen (this is also in the log in the server-main.log file) the following errors appear:

15.3.2025 15:33:28 [Error] [onebedsleeping] An exception was thrown when trying to start the mod:
15.3.2025 15:33:28 [Error] [onebedsleeping] Exception: The resource object with key 'TimeSpanHumanize_MultipleMilliseconds' was not found (Parameter 'resourceKey')
at Humanizer.Localisation.Formatters.DefaultFormatter.Format(String resourceKey, Int32 number, Boolean toWords) in /_/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs:line 137
at Humanizer.Localisation.Formatters.DefaultFormatter.GetResourceForTimeSpan(TimeUnit unit, Int32 count, Boolean toWords) in /_/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs:line 102
at Humanizer.Localisation.Formatters.DefaultFormatter.TimeSpanHumanize(TimeUnit timeUnit, Int32 unit, Boolean toWords) in /_/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs:line 71
at Humanizer.TimeSpanHumanizeExtensions.BuildFormatTimePart(IFormatter cultureFormatter, TimeUnit timeUnitType, Int32 amountOfTimeUnits, Boolean toWords) in /_/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 185
at Humanizer.TimeSpanHumanizeExtensions.GetTimeUnitPart(TimeUnit timeUnitToGet, TimeSpan timespan, TimeUnit maximumTimeUnit, TimeUnit minimumTimeUnit, IFormatter cultureFormatter, Boolean toWords) in /_/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 93
at Humanizer.TimeSpanHumanizeExtensions.CreateTheTimePartsWithUpperAndLowerLimits(TimeSpan timespan, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit, Boolean toWords) in /_/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 63
at Humanizer.TimeSpanHumanizeExtensions.Humanize(TimeSpan timeSpan, Int32 precision, Boolean countEmptyUnits, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit, String collectionSeparator, Boolean toWords) in /_/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 50
at Humanizer.TimeSpanHumanizeExtensions.Humanize(TimeSpan timeSpan, Int32 precision, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit, String collectionSeparator, Boolean toWords) in /_/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 33
at Gantry.Core.Hosting.ModHost.StartPreUniversal(ICoreAPI api)
at Gantry.Core.ModSystems.Abstractions.ModSystemBase.StartPre(ICoreAPI api)
at Vintagestory.Common.ModLoader.TryRunModPhase(Mod mod, ModSystem system, ICoreAPI api, ModRunPhase phase) in VintagestoryLib\Common\API\ModLoader.cs:line 626
15.3.2025 15:33:28 [Error] Failed to run mod phase Pre for mod ApacheTech.VintageMods.OneBedSleeping.Program

 

The game loads all normal, everything seems to work, but still - all normal? Is this how it's supposed to be?

💬 Apache , Mar 4th at 9:16 PM

Thalius, no. Much the opposite.

💬 Thalius, Mar 4th at 3:56 PM

Does this mod support disabling sleep entirely?

💬 Apache , Feb 9th at 4:11 PM

Charm59081, then you will need to open a ticket. I need all your log files to work out what it wrong. I cannot, and will not do that here.

💬 Charm59081, Feb 8th at 8:42 PM

It says "No Command Exists" 

💬 Apache , Feb 2nd at 2:56 PM

When you say it doesn't allow you, what do you mean? What message do you get when you type /obs into chat?

💬 Charm59081, Feb 2nd at 1:52 AM

I'm sorry, I cannot figure out how to use GitHub. I have downloaded this mod to my server, but it is not allowing me to use the commands, and one bed sleep isn't working. Do I need to do something to enable this? 

💬 EightDigit, Sep 28th 2024 at 10:14 AM

@Apache Derp, my bad. I was entirely sleep deprived when I wrote my comment

💬 Apache , Sep 27th 2024 at 12:38 AM

EightDigit, v2.4.2 should work fine. It works on my test server with two clients.

/obs players 51 = Requires both players sleeping.
/obs players 49 = Requires only one player sleeping.

💬 EightDigit, Sep 26th 2024 at 6:31 PM

Apache - Hit me up if you need someone to test. I've run it on all my servers in the past, no muss no fuss, but haven't been able to get it running under 1.19.8

💬 Apache , Sep 23rd 2024 at 9:06 PM

This hasn't had a release for a while. I'll make sure it still works as expected, and release a new version soon.

💬 Archer2150, Sep 22nd 2024 at 10:31 PM

Is this working for other people on their servers? On mine, just using regular base game beds we still need all 3 people online to be sleeping. In single player itll show a message when I get in bed, but those messages dont show up in multiplayer. I do have it installed on the multiplayer server, I just have my mods mirrored across the multiplayer and singleplayer folders clientside.

💬 Apache , Jun 25th 2024 at 10:27 PM

Plumeria, that does sound like an interesting edge case. If you ever get a server log of the crash, please let me know. I believe you can get backups of the logs with Th3Essentials, or one of Th3Dilli's mods. The one that adds support for Grafana.

💬 Plumeria, Jun 25th 2024 at 5:08 AM

Hello, o/
This mod is amazing for multiplayer servers great work! 
Just a issue we have had twice now on the server I'm playing on is that at first it'll say no one is sleeping and then it will spam the chat of everyone is sleeping. It then crashes/freezes the server and kicks everyone. This time the server seemed to fix itself and we all logged back in still sleeping then woke up and it was normal. I don't think anyone got a crash log though unfortunately. 

 

💬 Apache , Apr 7th 2024 at 2:09 AM

Screwy, delete your messages. Do not post spam stack traces to these comments. I've added an issue tracker for people to report bugs to. Use that. Any bugs reported here will be ignored.

💬 Telemachus, May 25th 2023 at 4:59 PM

Appreciate it!

💬 Apache , May 15th 2023 at 8:46 PM

Telemachus, I'll talk to Vies, and see what he's changed with that bed. We might be able to do some compatibility stuff with it.

💬 TNightster, May 12th 2023 at 4:02 PM

Is this mod compatible with newer 1.18.X versions? Thank you!

💬 Telemachus, May 10th 2023 at 10:54 AM

Is there any way to add beds from other mods to this? For example, we recently started using ViesBlocks which has a neat little bed that keeps you warm and heals you slowly while you sleep. However, if a single player sleeps in that bed, it doesn't skip time like it normally does for the vanilla beds.

💬 Arden, Mar 20th 2023 at 3:03 PM

Anyone tested this with Pre-7 ?

💬 Apache , Feb 23rd 2023 at 1:59 PM

Many apologies. Now updated. I'm hoping this fix will work. I've tested it with both my accounts logged into a test server. If there's any other issues, let me know.

💬 Arden, Feb 21st 2023 at 6:27 PM

I'm very interested in this mod, I hope the crash bug reported by Blackmare is fixed soon. :)

💬 RogueRaiden, Jan 10th 2023 at 6:58 AM

\o/
the day has arrived!

💬 Apache , Jan 9th 2023 at 10:04 PM

Update to v2.1.0

 - Added: Server Command: `/obs players [0-100]`. The percentage of players required to sleep, before time passes. Minimum of 1 person.
💬 BoolyStudy, Jan 6th 2023 at 8:02 PM

Could you add a new feature? I would like this mod to recognize percentages of people connected and to do it during the day or with voting, it would be nice, I have a Latin and Spanish multiplayer server, my players would appreciate it a lot, currently your mod can only sleep one person and it does it during the day, for which it is too OP, but if you do it by percentages it would be nice, thanks.

💬 BlueJello, Jun 12th 2022 at 4:08 PM

Confiming the download loop issue on my server too, I noticed the modinfo.json for version 1.1.0 has teh versionas 1.0.0, could that be the cause? using version 1.0.0 does not result in the download loop.

💬 WickedSchnitzel, Jun 2nd 2022 at 12:18 PM

I have tried to install the mod on my server but after the game prompted me to download it (which i did, it downloaded into the modsbyserver id folder) the game just continued to prompt me again and again in a loop. so i had to uninstall it, because the game did not recognize the mod as installed

💬 Apache , Mar 22nd 2022 at 11:21 PM

RogueRaidenTV, maybe one day. I'm not personally interested in anything like that, and neither is the server this mod was made for. I'll add it to the backlog though. The new update allows you to control the amount of hunger lost during sleep.

 

/obs hunger (0.0 -> 2.0)

💬 RogueRaiden, Mar 21st 2022 at 3:25 AM

Is a config set percentage of players sleeping possible? so that its more of a vote system. Wonderful to finally see something like this! 

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом