Minecraft wiki entry for Bed, associated text: Sleeping changes the time of day to sunrise and resets the weather cycle, changing the weather to clear conditions. In Java Edition, the weather cycle is only reset if it is currently raining or snowing. The player wakes up next to the bed, facing the bed.