
Mods / One Bed Sleeping
Author: Apache
Side: Both
Created: Mar 20th 2022 at 5:30 PM
Last modified: Mar 20th at 11:41 PM
Downloads: 15684
Follow Unfollow 124
Latest release (for outdated Vintage Story v1.20.6):
OneBedSleeping_v2.5.3.zip
1-click install
One Bed Sleeping
For use on SMP servers. Only one person needs to sleep in order to pass the night.
THIS MOD WILL NOT BE UPDATED TO 1.21 UNTIL IT IS OFFICIALLY RELEASED.
DO NOT REPORT BUGS IN THE COMMMENTS. USE THE ISSUE TRACKER PROVIDED.
Server Admin command: /obs hunger (0.0 -> 2.0) - Change the rate at which saturation is lost while sleeping. Default : 1.0
This mod can cause a vast amount of saturation to be consumed during play. Every 0.2 to this value is one small bar of hunger lost over a seven hour sleeping period. Sleeping in a straw bed usually drops a player's saturation by five bars.
Server Admin command: /obs players (0.0 -> 100.0) - The percentage of players online that need to sleep, before time passes. Minimum of one person. Default: 0.0
At the moment, I haven't added a sleep-voting system, because of the logic involved in making such a system. As this mod evolves, I may be able to add something like that in, as a separate feature.
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.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v2.5.3 | 2277 | Mar 20th at 11:41 PM | Show | OneBedSleeping_v2.5.3.zip | 1-click install | |
v2.5.2 | 2642 | Jan 25th at 2:47 PM | Show | OneBedSleeping_v2.5.2.zip | 1-click install | |
v2.5.1 | 161 | Jan 24th at 5:09 PM | Show | OneBedSleeping_v2.5.1.zip | 1-click install | |
v2.5.0 | 275 | Jan 23rd at 2:00 AM | Show | OneBedSleeping_v2.5.0.zip | 1-click install | |
v2.4.2 | 1806 | Sep 23rd 2024 at 11:43 PM | Show | OneBedSleeping_v2.4.2.zip | 1-click install | |
v2.4.1 | 1932 | Mar 28th 2024 at 7:38 PM | Show | OneBedSleeping_v2.4.1.zip | 1-click install | |
v2.4.0 | 753 | Feb 17th 2024 at 5:12 PM | Show | OneBedSleeping_v2.4.0.zip | 1-click install | |
v2.3.0 | 1310 | Oct 24th 2023 at 12:51 AM | Show | OneBedSleeping_v2.3.0.zip | 1-click install | |
v2.2.0 | 2679 | Apr 22nd 2023 at 2:48 AM | Show | ApacheTech.VintageMods.OneBedSleeping_v2.2.0.zip | 1-click install | |
v2.1.2 | 590 | Feb 23rd 2023 at 1:58 PM | Show | ApacheTech.VintageMods.OneBedSleeping_v2.1.2.zip | 1-click install |
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 :)
Thank you, I have a better understanding. Appreciate your work.
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!
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.
ah okay, thank you, that's a lot more clear than how it's phrased above.
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
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.
ChimMAG, I'll sort that soon. Thanks.
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?
Thalius, no. Much the opposite.
Does this mod support disabling sleep entirely?
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.
It says "No Command Exists"
When you say it doesn't allow you, what do you mean? What message do you get when you type /obs into chat?
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?
@Apache Derp, my bad. I was entirely sleep deprived when I wrote my comment
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.
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
This hasn't had a release for a while. I'll make sure it still works as expected, and release a new version soon.
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.
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.
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.
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.
Appreciate it!
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.
Is this mod compatible with newer 1.18.X versions? Thank you!
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.
Anyone tested this with Pre-7 ?
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.
I'm very interested in this mod, I hope the crash bug reported by Blackmare is fixed soon. :)
\o/
the day has arrived!
Update to v2.1.0
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.
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.
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
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)
Is a config set percentage of players sleeping possible? so that its more of a vote system. Wonderful to finally see something like this!