callumerrington / Somnia

A Minecraft mod which adds realistic sleeping by simulating the world
10 stars 9 forks source link

Feature Request: Sleep Time/Fatigue Level Interactions #32

Open ghost opened 8 years ago

ghost commented 8 years ago

(This has already been posted in the thread; this ticket is just to formalize and track the request)

Right now, sleep under this mod seems to be set to an AND condition; meaning that you have to have a fatigue level above a certain point, AND it has to be within the enterSleep period

Can an option be added to the config to use OR instead of AND? I would like the ability to configure Somnia to allow the player to sleep either at a certain fatigue level (say, 70, when the bad things start) OR at a certain time (allowing nighttime sleeping to be a thing, regardless of the fatigue level). This means that daytime sleeping will be limited to cases of extreme fatigue, the player will always be able to sleep at night, even if their fatigue is at 0 (which means, if something wakes them up, they can go back to sleep without having to wait for fatigue 20 again), and they'll still need to sleep to avoid the bad fatigue effects.

This basically makes fatigue and ticking sleep into game mechanics without making them grindy. Keep in mind the defaults can remain set to fatigue-only, but this would help modpack designers who want dangerous nights (preventing players from plopping a bed down in the middle of a field at dusk to avoid mobs) without forcing the player to sit and wait for morning because they accidentally woke up too soon.