Mods / One Bed Sleeping

Category: #Other #QoL #Tweak #Utility
Author: Apache
Side: Both
Created: Mar 20th 2022 at 5:30 PM
Last modified: Mar 28th at 7:38 PM
Downloads: 6353
Follow Unfollow 50

Latest file for v1.19.3:
OneBedSleeping_v2.4.1.zip 1-click install


One Bed Sleeping

For use on SMP servers. Only one person needs to sleep in order to pass the night.

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.4.1 309 Mar 28th at 7:38 PM Show OneBedSleeping_v2.4.1.zip Install now
v2.4.0 598 Feb 17th at 5:12 PM Show OneBedSleeping_v2.4.0.zip Install now
v2.3.0 1136 Oct 24th 2023 at 12:51 AM Show OneBedSleeping_v2.3.0.zip Install now
v2.2.0 2569 Apr 22nd 2023 at 2:48 AM Show ApacheTech.VintageMods.OneBedSleeping_v2.2.0.zip Install now
v2.1.2 482 Feb 23rd 2023 at 1:58 PM Show ApacheTech.VintageMods.OneBedSleeping_v2.1.2.zip Install now

17 Comments (oldest first | newest first)

💬 ApacheAuthor, Apr 7th 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!

💬 ApacheAuthor, 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 ?

💬 ApacheAuthor, 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. :)

💬 ApacheAuthor, Feb 14th 2023 at 2:19 AM

Blackmare, thanks for the report. I'll have a look into this. Should be a simple fix.

💬 Blackmare, Feb 13th 2023 at 3:20 PM

Ran into this last night twice when 2 players were trying to sleep after making the sleep threshold  60%

21:05:49 [Server Fatal] System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)

at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

at ApacheTech.VintageMods.OneBedSleeping.Features.OneBedSleeping.Patches.ModSleepingServerPatches.BroadcastSleepingMessage()

at ApacheTech.VintageMods.OneBedSleeping.Features.OneBedSleeping.Patches.ModSleepingServerPatches.Patch_ModSleeping_ServerSlowTick_Prefix(ModSleeping __instance, ICoreServerAPI ___sapi, Double& ___lastTickTotalDays, IServerNetworkChannel ___serverChannel)

at Vintagestory.GameContent.ModSleeping.ServerSlowTick_Patch1(ModSleeping this, Single dt)

at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryLib\Common\EventManager.cs:line 106

at Vintagestory.Server.CoreServerEventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryLib\Server\ServerEventManager.cs:line 123

at Vintagestory.Server.ServerMain.Process() in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryLib\Server\ServerMain.cs:line 768

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

\o/
the day has arrived!

💬 ApacheAuthor, 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

💬 ApacheAuthor, 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)