Simulated Nights
Simulates the passage of time when sleeping through the night by ticking entities and/or randomly ticking blocks proportional to the amount of time skipped. Also adds a command (/simulate) to simulate (and optionally set/add) time.
Issues should be submitted via GitHub (here), if possible, but can be submitted internally, if need be.
This mod has been released into the public domain. Use it anywhere in any way.
This mod is specifically coded to work with Morpheus. It may or may not work with other mods that alter sleep.
A server with this mod can allow or disallow clients from connecting without this mod. Here are some things to keep in mind when deciding whether or not to allow them to connect:
- If allowed, and if the server is set to send command message lang keys to be translated on the client running the /simulate command (OPs only), clients without this mod will receive the raw lang keys, rather than the intended text.
- If allowed, and if 1) the night is set to simulate in a single server tick; 2) a sleep delay is used; and 3) the server is set to put players in a deep sleep; then clients without this mod will not be put in one. Since being in a deep sleep is what prevents players from leaving their beds during a sleep delay, players without this mod installed on their client will be able to leave and enter a will, while those with it installed will not be.
Before Night Simulation
After Night Simulation
the 1.12 version work ins minecraft 1.12.2?
Can you add the option of choosing what time to sleep to? Like a mod from a while ago?
Does this need to be installed on both Server and Client?
Seems to do wacky stuff to Seasons in Tough As Nails. Not sure if there's a way to alter the settings to prevent this, but I went to sleep the first night (early spring) and ended up in fall!
1.7.10?
In reply to mcuriosity3:
This reminds me of the beta sleep cycle when mobs could interrupt your sleep. Can this mod do this? BTW Great Job!
In reply to JohnArmy:
Thank you.
Well, the beta behavior was to have a chance to spawn hostile mobs around beds while sleeping. This mod can optionally tick all entities when simulating the night (set by 'Tick All Entities Overnight'). If so mobs, will move very quickly, and if hostile ones happen to wander into range of the player, they will target and attack the player, which will wake them up. As this is more realistic, I personally prefer it to the beta behavior. Just note that this is set to false by default, due to the extra simulation time required.
In reply to Phylogeny:
Does this have an option to make a player actually wait while they sleep?
In reply to GeebsRilie:
In reply to Phylogeny:
In reply to GeebsRilie:
No problem. Also, the time it takes to simulate the night can be set in one of two ways:
1) By default, the night is simulated over multiple ticks (set by 'Server Ticks Night is Simulated Over'); the default is to simulate 60 ticks per actual ticks (set by 'Simulated Ticks Per Server Tick'), so one minute is simulated per second.
2) If you set the simulation of the entire night to run in a single server tick (again, set by 'Server Ticks Night is Simulated Over'), then the simulation will only occur after everyone has slept for a certain number of ticks (set by 'Sleep Delay'). By default this is 200 ticks, i.e. 10 seconds.
A brief summery of all the configs is linked above (and here), but the most in-depth explanation of each config is in its respective hover text in the config GUI. And of course just ask if you have any questions.
Dude we needed mod with this function! Thanks!!!
tried, but it is not working :/ any idea? i used 4 types of saplings around my bed.(enough distance)
Is there sufficient artificial light for tree growth?
i tried it rightnow. i placed a glowstone, climate is cold. i slept, aaaand the snows around the glowstone are molten. but tree sapling is still stays as it is.
edit: i tried with torches on the ground. not worked
Which Forge version are you using?
13.20.0.2201 using.
Forge 13.20.0.2201 is what I tested it in, and it works for me. I just used this seed to get a cold clime: -8108895466756605673. I then placed down a bed, a 3x4 plot of oak saplings, and a glowstone block directly adjacent the trees. I set the time to 'night' and slept. Five of the trees grew overnight.
Do you have the day/night cycle turned off? (although if that were the case, the night wouldn't be skipped anyway) If not, check the 'Tick Blocks Randomly Overnight' config to make sure it is set to true.
Also, make sure that MCs random tick speed is not set to 0.