Announcement: Somnia has been updated by another developer here.
Special FAQ:
Q: Why hasn't Somnia been updated to 1.4/1.5/1.x? A: I don't have Internet at home. (Update:it has.)
Q: Why do you need Internet to work on the mod? A: To research while I'm coding. The client/server model changed dramatically in 1.3, and I want to be able to refer to APIs, changelogs, and tutorials.
Q: Why don't you have Internet at home? A: I just moved into a new house. The previous owners had AT&T DSL, but when I tried to sign up, AT&T said they are at "maximum capacity." AT&T is the only provider in this area. They've assured me they have plans to expand, but they haven't given me any timeline. My only choice is to wait.
Q: What about getting a wireless hotspot? A: The wireless coverage in my area is terrible. I can make phone calls, but the data transfer rate is basically unusable.
Q: What about satellite Internet? A: That is expensive, capped, and cuts out when it rains. In short, it sucks. We also just had a baby, so I'm trying to keep monthly expenses to a minimum.
Q: How are you visiting the forums if you don't have Internet? A: I visit the forums from work. This also explains why I don't reply on weekends.
Q: Why don't you release the source code so someone else can update Somnia? A: Mainly because it wouldn't help. Because of the changes that occurred in 1.3, I have to rewrite the mod from scratch. The source code for the 1.2.5 version is completely worthless. Anyone else is welcome to rewrite it from scratch, as I hope to do eventually.
Q: Would donating money help? A: I can't think of a way that it would, but thanks for offering. When AT&T refused me service, I told them, "Gee, that's too bad. I would love to give you money." Money is not the problem.
Original post follows.
------------------------------------
Somnia completely changes how sleeping works in Minecraft. It has been included in YogBox (with permission) and mentioned in PCGamer, which is pretty sweet.
Fixed an issue where blocks that broke while asleep accumulated particles and caused lag after waking.
Optimizations for slightly faster simulation.
Corrected calculation of speed multiplier. Note: the simulation is not any slower than before (in fact it's a bit faster), but you will see your multiplier drop because it was calculated incorrectly.
Updated for Client Beta 1.8.1. (Note: Performance across the board took a huge hit in Minecraft 1.8, and the simulation speed suffers as a result.)
You grow hungry when sleeping. The rate varies based on the difficulty and whether or not you are at full health.
Increased healing rates while sleeping to account for the new hunger mechanics. Delete your .minecraft/config/Somnia.cfg file to reset to the new defaults.
Removed custom bed block (id=100). Uses Minecraft's native bed. This should resolve most incompatibilities with other mods. Before upgrading, destroy all Somnia bed blocks using lava or by dropping them and letting them decay.
Removed custom recipe. Uses Minecraft's native bed recipe.
v0 [b1.2_01] (previously "v1.0") - Download - Released Feb 19, 2011
Mar 12, 2013: For those who have not been following the topic, development is stalled. Even with a local dev environment, the lack of internet access is crippling. However, I've filed an issue with Mojang for their mod API (MCAPI).
Dec 10, 2012: I managed to set up a dev environment even without an internet connection. It looks like I'll be able to get the mod working with a combination of the PlayerInteractEvent and the PlayerSleepInBedEvent.
Nov 27, 2012: I still don't have internet access at home after the recent move. I can visit the forum from work, but obviously I can't work on Minecraft mods here. Meanwhile, Forge has added something I think I can use, but I won't know until I can check out the code... which of course requires an internet connection.
Oct 29, 2012: I am still waiting for my submission to be included in Forge. I also don't have an internet connection at home (more details here and here), which pretty much prevents me from doing any work.
Sep 11, 2012: I think I've overcome the learning curve, but Minecraft Forge didn't quite offer the functionality I need for multiplayer support. I've submitted code to Minecraft Forge and am waiting for its inclusion.
Aug 22, 2012: The update for Minecraft 1.3 is delayed indefinitely while I try to figure out multiplayer support and the new Forge (read more).
Aug 04, 2012: The update for Minecraft 1.3 will come soon after MCP, ModLoader, and Minecraft Forge all get updated. Barring any huge problems, this does mean that Somnia will finally work in multiplayer.
Mar 26, 2012: Somnia v22 [1.2.4] released! (announcement)
Mar 10, 2012: Somnia v21 [1.2.3] released! (announcement)
Mar 04, 2012: Somnia v20 [1.2.3] released! (announcement)
Feb 05, 2012: Somnia v19 [1.1.0] released! (announcement)
Jan 14, 2012: Somnia v18 [1.1.0] released! (announcement)
Dec 01, 2011: Somnia now has support for Minecraft Forge 1.2! (announcement)
Nov 26, 2011: Somnia v17 [1.0.0] released! (announcement)
Nov 21, 2011: The update for Client 1.0.0 will come soon after MCP and ModLoader both get updated.
Nov 05, 2011: Somnia v16 [1.9pre5] released! (announcement)
Oct 04, 2011: Somnia v15 [1.8.1] released! (announcement)
Sep 18, 2011: Somnia v14 [1.8.1] released!
Sep 15, 2011: The update for Client Beta 1.8 will come soon after MCP and ModLoader both get updated.
Aug 21, 2011: Somnia v13 [1.7.3] released!
Aug 05, 2011: Somnia v12 [1.7.3] released!
Jul 09, 2011: Somnia v11 [1.7.3] released!
Jul 07, 2011: Somnia v10 [1.7.2] released!
Jul 03, 2011: The update for Client Beta 1.7 will come soon after MCP and ModLoader both get updated.
Jun 29, 2011: Donate button added.
May 31, 2011: Somnia v9 [1.6.6] released!
May 30, 2011: Somnia v8 [1.6.5] released!
May 26, 2011: The update for Client Beta 1.6 will come soon after MCP and ModLoader both get updated.
May 10, 2011: Somnia v7 [1.5_01] released!
Apr 30, 2011: Somnia v6 [1.5_01] released!
Apr 28, 2011: The update for Client Beta 1.5 is in progress and will be released this weekend.
Apr 19, 2011: The update for Client Beta 1.5 will come soon after MCP and ModLoader both get updated.
Apr 05, 2011: Somnia v5 works with Client Beta 1.4_01, provided you are using ModLoader 1.4_01. No update was necessary.
Apr 03, 2011: Somnia v5 [1.4] released!
Apr 02, 2011: The update for Client Beta 1.4 is in progress and will be released tomorrow.
Mar 23, 2011: Somnia v4 [1.3_01] released!
Mar 21, 2011: Somnia v3 [1.3_01] released!
Mar 05, 2011: Somnia v2 [1.3_01] released!
Feb 28, 2011: Somnia v1 [1.3_01] released!
Feb 25, 2011: Development has resumed now that new versions of MCP and ModLoader came out. The next version of Somnia will modify the behavior of native beds instead of adding a new block.
Feb 22, 2011:Notch added beds in Beta 1.3. I will make a decision about this mod's future before the week's end.
Feb 19, 2011: Somnia v0 [1.2_01] released!
Feb 18, 2011: I know beds will be officially added to the base game in the next update, but I didn't know that when I started work on this mod. The first release will work for Client Beta 1.2_02, and I will make a decision about continuing development after we all see how beds are done in the base game.
Features
Simulates the world: While you're sleeping, the world continues as if you are standing idle the whole time. Crops and trees will grow, smelting continues, weather progresses, mobs are active (even mobs added by other mods), and dropped items decay. You also heal an amount based on how long you've spent sleeping and the difficulty setting, but you'll also grow hungry. The simulation will take a few moments.
No sleep-triggered monster spawns: Monsters spawn normally and may still attack you in your sleep, but only if they can actually reach you. No more worrying if your bed is in an "unsafe" location. If you'd be safe while awake, you'll be safe while asleep.
Sleep/wake at any time: Sleep any time, day or night. Wake automatically at the next dawn/dusk or manually at any time. If you have a Clock item in your hand, you can choose when you wake from among 16 options throughout the day.
Control your spawn point: Before you sleep, you can choose whether or not sleeping will reset your spawn point.
Maximum compatibility: This mod doesn't add any new Block or Item IDs. It just changes the behavior of the native bed. It will not corrupt your save files, and it is compatible with most other mods. It also disables itself in multiplayer.
Installation ModLoader only:
Download ModLoader and install it into your minecraft.jar file.
Run Minecraft and make sure it still works. If not, reinstall ModLoader and make sure you didn't miss any steps (like removing the META-INF folder).
Copy the contents the Somnia ZIP into your minecraft.jar file.
Enjoy!
ModLoader + Minecraft Forge:
Download ModLoader and Minecraft Forge and install both into your minecraft.jar file.
Run Minecraft and make sure it still works. If not, reinstall ModLoader and Minecraft Forge and make sure you didn't miss any steps (like removing the META-INF folder).
Copy the Somnia ZIP into .minecraft/mods.
Enjoy!
Configuration
The first time you run Minecraft with Somnia installed, a file called mod_Somnia.cfg will appear in your .minecraft/config directory. If you want to change any of the options, open this file in a text editor. I have described each property below. To reset to the defaults, make sure Minecraft is closed, delete the file, and restart Minecraft.
heal.easy - The heal rate, in hearts-per-hour, while sleeping on Easy difficulty.
heal.normal - The heal rate, in hearts-per-hour, while sleeping on Normal difficulty.
heal.hard - The heal rate, in hearts-per-hour, while sleeping on Hard difficulty.
hunger.easy - The hunger rate, in foods-per-hour, while sleeping on Easy difficulty.
hunger.normal - The hunger rate, in foods-per-hour, while sleeping on Normal difficulty.
hunger.hard - The hunger rate, in foods-per-hour, while sleeping on Hard difficulty.
respawn.default - Controls the default value of the "Reset Spawn" button.
respawn.visible - Controls whether the "Reset Spawn" button is visible.
valid.worlds - Comma-separated list of world IDs that allow sleep. Normal = 0; Nether = -1; End = 1. (Doesn't work yet. Sorry!)
armor.difficulty - Minimum difficulty where armor must be taken off to sleep. 0 = Peaceful, 1 = Easy, 2 = Normal, 3 = Hard, 4 = Hardcore, 5 = Disabled.
Screenshots
Sleeping at night.
Sleeping during the day.
Sleeping while holding a Clock.
Simulating during sleep.
Videos
A thorough review of v24 by forum member Sourful.
A review of v17.
A hilarious review of v14. (Strong language.)
A review of v11.
A review of v6.
Mod Packs Featuring Somnia
The following mod compilations include Somnia (with permission). I won't allow any new mod packs to include Somnia--there are just too many--so please don't ask.
This mod does not add any new block IDs, so you can safely begin using it in an existing world, and it will not corrupt your world if you remove it. If you are using ModLoader and install it into minecraft.jar, the only core file it changes is the Bed block, so it should be compatible with most other mods. If you are using Minecraft Forge, it should be compatible with any Forge mod.
Some compatibility questions involving specific mods have come up in the past, so I have addressed them here:
Better Than Wolves: Sleeping while a machine destroyed blocks caused an accumulation of particles in v18 and earlier which lagged the game. This is fixed in v19 and later.
Dynamic Lights: Sleeping while using Somnia v9v12 and earlier will cause crashes, but I've fixed that in v10v13 and later.
HD Textures: As with many mods, it may be tricky to get Somnia working with HD textures, but it is possible.
Millenaire: Does work with Somnia, despite some perceptions. The townsfolk don't build at night, but they do make babies.
Sometimes the game freezes up while sleeping and displays the message "Saving chunks." A look at ModLoader.txt reveals a ConcurrentModificationException. Other players using Millenaire have had the same problem while awake, so it's not an issue with Somnia.
MoreBeds+ (outdated): The creator of this mod was kind enough to modify it so it would be compatible with Somnia.
The Seasons Mod: When using Somnia v12 and earlier, seasons did not correctly advance when you slept. This is fixed in v13 and later.
Known Issues
Can take a rather long time to simulate, especially if you have a slow machine. This is likely why Mojang chose to implement sleep the way they did.
Update: v10 (and higher) contains an optimization that improves performance. If you're recording with FRAPS, sleeping should be much faster.
Update 2: This was adjusted further in v13. Autosave is completely disabled while sleeping.
Update 3: Performance across the board took a huge hit in Minecraft 1.8, and the simulation speed suffers as a result.
Update 4: Performance has improved in 1.9pre5, so I've removed the benchmarking poll for now. I will add it back later.
Does not work with some parts of the Doggy Talents mod. Its developer has added a workaround, but we're working to find a better solution.
FAQ
Q: I've encountered a problem with your mod. Can you help me? A: First, consider that you might have done something incorrectly. Start with a clean minecraft.jar and go through the installation once more. Make sure you can consistently reproduce the problem. Here are a few common mistakes:
Make sure you installed ModLoader (and Minecraft Forge if applicable) correctly.
Make sure you deleted the META-INF directory from your minecraft.jar file.
Make sure you're installing the correct version for your version of Minecraft.
If you're still having problems, post to this thread and be sure to provide the following information:
Are you using the latest release of Minecraft? If not, what version?
Are you using the latest release of the mod? If not, what version?
Are you using ModLoader or Minecraft Forge?
What exactly is the problem? (e.g. "Black screen" or "Crash")
When does it happen? (e.g. "Every time I start Minecraft" or "When I sleep with a pig nearby.")
Do you have other mods installed? If so, which ones?
Is there an error or stack trace? (Check .minecraft/ModLaoder.txt near the end.)
If you don't provide all of the required information, I will not be shy about directing you back to this question.
Q: Can I include your mod in my mod pack? A: Thank you for your interest, but no. I've given permission to the mod packs above. I will not extend this permission to any more mod packs. There are simply too many out there. (more info)
Q: Can I mirror your mod? A: No, I would prefer that you simply link to this thread. The best thing for users is for the mod's presence to all be in one place. That way, it's a one-stop-shop for people to download the newest versions, get support, and offer suggestions.
Q: Why does the simulation take so long? A: The simulation is a lot of number-crunching, so if you have a slow processor or are running intensive processes in the background (like frapps), it's going to take longer. There are also some design choices made by Minecraft's developers that make it impossible for me to optimize. Minecraft's code mixes graphics with logic in several places, so the simulation performs some unnecessary graphics-related operations that can't be skipped.
A number of users have reported a 10-20x speed decrease while running frapps. If you're recording a video, best to suspend recording before you sleep.
Q: Can you add a way to sleep "normally" where the simulation doesn't run? A: This mod is more about realism than utility. An option for the "normal" bed behavior would defeat the purpose. If you want to disable the mod without uninstalling it, open .minecraft/config/ModLoader.cfg with a text editor and set mod_Somnia=off.
Q: How does Somnia work? If I'm a developer, how do I make sure my mod simulates correctly? A: It's too complicated to explain in one or two paragraphs. Expand the spoiler for details.
Minecraft's world progresses using a series of ticks. There are 24,000 ticks in one Minecraft day. One day in Minecraft is also 10 real-world minutes. This means there are 2400 ticks per minute or 40 ticks per second.
Pauses until the next tick if all of the above takes less than 1/40 of a second. (Note: If it takes more time than that, you experience lag.)
Somnia works by doing some of these things (in blue above) while you sleep. It skips most of the graphics operations because you can't see anything while you're sleeping (and because they slow things down).
For developers, here's the breakdown:
beforeSleep(); //Mutes sounds, turns down graphics settings, disables world auto-save.
while (sleeping()) {
if (ticksElapsed % 10 == 0) {
mc.effectRenderer.clearEffects(); //Remove all particles to avoid accumulation.
}
mc.renderGlobal.updateClouds(); //Move the clouds.
world.updateEntities(); //Update entities (furnaces, crops, mobs...)
world.tick(); //Progress weather, spawn mobs, tick++, update blocks.
ModLoader.OnTick(0, mc); //Update other ModLoader mods.
resetDynamicLights(); //Special handler for compatibility with Dynamic Lights mod.
}
afterSleep(); //Restores sounds, restores graphics settings, enables world auto-save.
If you are adding new content, Somnia will simulate behavior in the following methods:
Entity.onUpdate()
Block.updateTick()
Mod.OnTickInGame()
The following methods are not called during the simulation:
Block.randomDisplayTick()
EntityFX.onUpdate()
Q: How did you come up with the idea? A: I was interested in creating a mod (my first), so I asked a friend of mine for ideas. This was back in Beta 1.2, before there were beds at all, and he wanted a way to skip the night so he could focus on building during the day. I wanted to make sure it didn't feel like cheating, which meant preserving the risk involved with sleeping in a world full of monsters. That's where I got the idea of just simulating the world. The monsters are active while you're asleep, so if they can get to you, they will attack you. That put a new emphasis on building a solid home base, which I thought was a cool idea. Simulating the world also meant that things like smelting would continue, which would save us more time. I used this tutorial as a jumping-off point. From there, I found out about MCP and ModLoader.
It wasn't a unique idea, of course. A lot of people had similar ideas, like in this thread. When Notch added beds and sleep in 1.3, I decided to continue developing the mod and to just repurpose his bed, which looked better anyway. (The first version of Somnia added its own bed block.) Most of people's complaints about Minecraft's native sleep are because it seems so artificial. There are these arbitrary rules that don't apply any other time, so it upsets our expectations. Somnia "fixes" these by acting the way real sleep acts -- you're idle and vulnerable for a long time, and the world continues.
For those who have wondered, I didn't really have complaints against native sleep in mind when I created Somnia because at the time, there was no sleep in Minecraft. I just brought forward my own implementation, which some people preferred over the native one.
Show Support
Show your support by placing this badge in your signature:
MOD - modification, plugin, a piece of software that interfaces with the Minecraft client to extend, add, change or remove original capabilities.
MOJANG - Mojang AB.
OWNER - MALfunction84, original author of the MOD. Under the copyright terms accepted when purchasing Minecraft (http://www.minecraft.net/copyright.jsp) the OWNER has full rights over the MOD despite use of MOJANG code.
USER - End user of the mod, person installing the mod.
LIABILITY: THIS MOD IS PROVIDED 'AS IS' WITH NO WARRANTIES, IMPLIED OR OTHERWISE. THE OWNER OF THIS MOD TAKES NO RESPONSIBILITY FOR ANY DAMAGES INCURRED FROM THE USE OF THIS MOD. THIS MOD ALTERS FUNDAMENTAL PARTS OF THE MINECRAFT GAME, PARTS OF MINECRAFT MAY NOT WORK WITH THIS MOD INSTALLED. ALL DAMAGES CAUSED FROM THE USE OR MISUSE OF THIS MOD FALL ON THE USER.
USE: Use of this MOD to be installed, manually or automatically, is given to the USER without restriction.
REDISTRIBUTION: This MOD may only be distributed where uploaded, mirrored, or otherwise linked to by the OWNER solely. All mirrors of this mod must have advance written permission from the OWNER. ANY unauthorized attempts to make money off of this MOD (selling, selling modified versions, adfly, sharecash, etc.) are STRICTLY FORBIDDEN, and the OWNER may claim damages or take other action to rectify the situation.
DERIVATIVE WORKS/MODIFICATION: This mod is provided freely and may be decompiled and modified for private use, either with a decompiler or a bytecode editor. Public distribution of modified versions of this MOD require advance written permission of the OWNER and may be subject to other terms.
You could use my craft grid to make it more realistic looking in the recipe?
I'm not sure I want it to be dependent on other mods. Also, this is my first foray into Minecraft modding. I don't want to overextend myself or it'll never get finished.
Make it a [WIP] instead of a [MOD]. That way, people won't be asking for download links always. And you will probably have to be dependent on modloader probably. People like it when things are compatible.
Make it a [WIP] instead of a [MOD]. That way, people won't be asking for download links always. And you will probably have to be dependent on modloader probably. People like it when things are compatible.
Good idea. Here's an image I just threw together that you guys can use.
Could you give us and url to put in our signature...
For Example: your signature (Like when you click on the picture it brings you to the thread)
If you don't understand look at my signatures. They are signatures of what I just said.(The thing about clicking on a picture and brings you to thread)
Rollback Post to RevisionRollBack
A double resolution texture pack that stays faithful to the original Minecraft textures.
Could you give us and url to put in our signature...
For Example: your signature (Like when you click on the picture it brings you to the thread)
If you don't understand look at my signatures. They are signatures of what I just said.(The thing about clicking on a picture and brings you to thread)
Update:
I've been making steady progress on the mod. Check out the first post to see the latest.
So far, everything works as expected and I anticipate a release very soon. I've decided to delay a few features in the interests of getting something out there for everyone to use.
I was having trouble getting the mod, or anything really, to work with Mod Loader. If anyone has experience in this area and is willing to help, please PM me. Thanks!
Special FAQ:
Q: Why hasn't Somnia been updated to 1.4/1.5/1.x?
A: I don't have Internet at home. (Update: it has.)
Q: Why do you need Internet to work on the mod?
A: To research while I'm coding. The client/server model changed dramatically in 1.3, and I want to be able to refer to APIs, changelogs, and tutorials.
Q: Why don't you have Internet at home?
A: I just moved into a new house. The previous owners had AT&T DSL, but when I tried to sign up, AT&T said they are at "maximum capacity." AT&T is the only provider in this area. They've assured me they have plans to expand, but they haven't given me any timeline. My only choice is to wait.
Q: What about getting a wireless hotspot?
A: The wireless coverage in my area is terrible. I can make phone calls, but the data transfer rate is basically unusable.
Q: What about satellite Internet?
A: That is expensive, capped, and cuts out when it rains. In short, it sucks. We also just had a baby, so I'm trying to keep monthly expenses to a minimum.
Q: How are you visiting the forums if you don't have Internet?
A: I visit the forums from work. This also explains why I don't reply on weekends.
Q: Why don't you release the source code so someone else can update Somnia?
A: Mainly because it wouldn't help. Because of the changes that occurred in 1.3, I have to rewrite the mod from scratch. The source code for the 1.2.5 version is completely worthless. Anyone else is welcome to rewrite it from scratch, as I hope to do eventually.
Q: Would donating money help?
A: I can't think of a way that it would, but thanks for offering. When AT&T refused me service, I told them, "Gee, that's too bad. I would love to give you money." Money is not the problem.
Original post follows.
------------------------------------
Somnia completely changes how sleeping works in Minecraft. It has been included in YogBox (with permission) and mentioned in PCGamer, which is pretty sweet.
Download
Added configuration option that controls which world IDs allow sleep.(Doesn't work. Sorry!)Now compatible with Dynamic Lights.I am a dirty liar. See v13.Requirements
Features
ModLoader only:
valid.worlds - Comma-separated list of world IDs that allow sleep. Normal = 0; Nether = -1; End = 1.(Doesn't work yet. Sorry!)Screenshots
Sleeping during the day.
Sleeping while holding a Clock.
Simulating during sleep.
Videos
A review of v17.
A hilarious review of v14. (Strong language.)
A review of v11.
A review of v6.
Mod Packs Featuring Somnia
Mod Compatibility
Some compatibility questions involving specific mods have come up in the past, so I have addressed them here:
v9v12 and earlier will cause crashes, but I've fixed that inv10v13 and later.Known Issues
FAQ
A: First, consider that you might have done something incorrectly. Start with a clean minecraft.jar and go through the installation once more. Make sure you can consistently reproduce the problem. Here are a few common mistakes:
Q: Can I include your mod in my mod pack?
A: Thank you for your interest, but no. I've given permission to the mod packs above. I will not extend this permission to any more mod packs. There are simply too many out there. (more info)
Q: Can I mirror your mod?
A: No, I would prefer that you simply link to this thread. The best thing for users is for the mod's presence to all be in one place. That way, it's a one-stop-shop for people to download the newest versions, get support, and offer suggestions.
Q: Why does the simulation take so long?
A: The simulation is a lot of number-crunching, so if you have a slow processor or are running intensive processes in the background (like frapps), it's going to take longer. There are also some design choices made by Minecraft's developers that make it impossible for me to optimize. Minecraft's code mixes graphics with logic in several places, so the simulation performs some unnecessary graphics-related operations that can't be skipped.
A number of users have reported a 10-20x speed decrease while running frapps. If you're recording a video, best to suspend recording before you sleep.
Q: Can you add a way to sleep "normally" where the simulation doesn't run?
A: This mod is more about realism than utility. An option for the "normal" bed behavior would defeat the purpose. If you want to disable the mod without uninstalling it, open .minecraft/config/ModLoader.cfg with a text editor and set mod_Somnia=off.
Q: How does Somnia work? If I'm a developer, how do I make sure my mod simulates correctly?
A: It's too complicated to explain in one or two paragraphs. Expand the spoiler for details.
During a tick, Minecraft does a number of things:
For developers, here's the breakdown:
If you are adding new content, Somnia will simulate behavior in the following methods:
Q: How did you come up with the idea?
A: I was interested in creating a mod (my first), so I asked a friend of mine for ideas. This was back in Beta 1.2, before there were beds at all, and he wanted a way to skip the night so he could focus on building during the day. I wanted to make sure it didn't feel like cheating, which meant preserving the risk involved with sleeping in a world full of monsters. That's where I got the idea of just simulating the world. The monsters are active while you're asleep, so if they can get to you, they will attack you. That put a new emphasis on building a solid home base, which I thought was a cool idea. Simulating the world also meant that things like smelting would continue, which would save us more time. I used this tutorial as a jumping-off point. From there, I found out about MCP and ModLoader.
It wasn't a unique idea, of course. A lot of people had similar ideas, like in this thread. When Notch added beds and sleep in 1.3, I decided to continue developing the mod and to just repurpose his bed, which looked better anyway. (The first version of Somnia added its own bed block.) Most of people's complaints about Minecraft's native sleep are because it seems so artificial. There are these arbitrary rules that don't apply any other time, so it upsets our expectations. Somnia "fixes" these by acting the way real sleep acts -- you're idle and vulnerable for a long time, and the world continues.
For those who have wondered, I didn't really have complaints against native sleep in mind when I created Somnia because at the time, there was no sleep in Minecraft. I just brought forward my own implementation, which some people preferred over the native one.
Show Support
Show your support by placing this badge in your signature:
Or make a donation:
Development Checklist
Cancelled or removedAdd new bed block.(Replaced by native bed item.)Add new texture.Make head of bed determined by which block is laid first.Vary texture color based on wool color used in recipe.(Use MoreBeds+ - now compatible with Somnia)Interaction requires two adjacent bed blocks.Make world simulation optional.(Mod can be disabled in ModLoader.cfg file.)Sleeping resets spawn point.(Implemented in Beta 1.4)in hotbarthe active item to work.Take no falling damage if landing on a bed.Bounce slightly if landing on a bed.Jumping on a bed gradually increases jump height, up to a point.Prevent sleep spam.Make sleeping more moddable using an event/listener model.(Patch submitted to MCF.)Work with Xie's Hunger Mod so that you don't grow so hungry while sleeping.(Outdated.)Work with Flan's Moods Mod. (Flan's "Hunger" mood now ties directly to the hunger bar.)Work with TFC Mod Manager.(No longer supported.)Work with Minecraft Mod Manager.(Abandoned.)Copyright/License
TERMS AND CONDITIONS
SDG
You found a download link? GIMME!
I'm not sure I want it to be dependent on other mods. Also, this is my first foray into Minecraft modding. I don't want to overextend myself or it'll never get finished.
A double resolution texture pack that stays faithful to the original Minecraft textures.
Don't allow to spam sleep.
Already done. Thanks.
Good idea. Here's an image I just threw together that you guys can use.
Could you give us and url to put in our signature...
For Example: your signature (Like when you click on the picture it brings you to the thread)
If you don't understand look at my signatures. They are signatures of what I just said.(The thing about clicking on a picture and brings you to thread)
A double resolution texture pack that stays faithful to the original Minecraft textures.
This totally isn't because I'm too lazy to actually let my crops grow.
Yeah, just use the URL for my initial post in this topic:
viewtopic.php?f=25&t=176264#p2546729
I've been making steady progress on the mod. Check out the first post to see the latest.
So far, everything works as expected and I anticipate a release very soon. I've decided to delay a few features in the interests of getting something out there for everyone to use.
I was having trouble getting the mod, or anything really, to work with Mod Loader. If anyone has experience in this area and is willing to help, please PM me. Thanks!