Sleep Under The Stars
With this mod, you can fall asleep at any time of day, even in the middle of the afternoon. Simply use the starry pillow with a right-click, and your character will sleep for 12000 ticks (12 in-game hours) - exactly the same duration as a night with a regular Minecraft bed.
The mod's special feature is that you can sleep during the day, which will then skip time to night. If you want to wake up early, just press the spacebar - and you'll return to the moment when you started sleeping.
In multiplayer games, the mod works exactly the same as in single-player.
In addition to the regular starry pillow, there's also a programmable version. It allows you to set a specific wake-up time - for example, at noon (12000 ticks) or at midnight. The early wake-up function is also available.
Both pillows have a durability of 100 units, but they don't break completely. When durability reaches 1, a message will appear indicating the need to repair the pillow. Use a smithing table for this purpose.
Important: in the programmable pillow's interface, do not press the Escape key, otherwise you'll get stuck in sleep until you press the spacebar or wait for the sleep to end.