I have an idea for a mod that, as the title suggests, will overhaul sleep.
The mod will simulate the world as you sleep, hopefully without breaking other mods. (The Sleep Voting mod will probably not work.)
If you stay awake for too long, then a potion effect will apply called "Tired". It will make you move more slowly, and maybe with a slow blinking effect over the game camera.
After a certain amount of time with the tired effect, you will simply fall asleep right then and there. The world will be simulated, and your sleep meter will refill until daytime.
However, you cannot sleep when the light level is above ten. Your sleep meter will continue to drop, and eventually you will start hallucinating.
Coffee will stave off the tired effect, but eventually hallucination will set in. (Maybe ic2 coffee will work as well.)
Milk will be changed (maybe without breaking compatibility with MFR) so that it clears all potion effects, except the tired effect. It will additionally add to your tired meter, but only if your hunger is full enough to heal you. This is to simulate an "I'm full and i'm tired now" effect, without making you fall asleep during a wither fight.
I am looking for coders (i have no experience with java). Ideas are appreciated as well.