When sleeping through a thunderstorm to clear the weather, the in game time of day is reset to 0
Tested in new world with no datapacks etc. See screenshots for a lovely visual story
Time set to noon (6000)
Weather set to thunder
Slept in bed
Time has reset to 0, sun is now rising
Expected Result
The expected behavior would be that sleeping through thunderstorms would not reset the time of day.
Linked issues
Attachments
Comments 6
Actually this is working as intended. Most of the time it doesn't work. Its spose to work in thunder storms and at night.
I can confirm that this is an issue. Also affects 1.17.1. Just in case the provided information isn't clear, here are some extra details.
The Bug:
Sleeping through thunderstorms resets the time of day.
Steps to Reproduce:
Set the time to noon (6000) and the weather to thunder.
/time set noon
/weather thunder
Sleep in a bed.
As soon as you wake up, inspect what time of day it is by running the following command.
/time query daytime
→ ❌ Notice how the "daytime" value is around the range of 0 to 200 (depending on how long it took you to execute this command after waking up), therefore indicating that sleeping through thunderstorms resets the time of day.
Expected Behavior:
The expected behavior would be that sleeping through thunderstorms would not reset the time of day.
So, I just made my account, specifically to add this comment (and hopefully help further with other things), so I apologize in advance if I mess anything up. I'm pretty sure wayne and Anthony R White are correct, because, in answer to Brevort's question - at least in 1.17.1 Creative Mode - it skips to the next sunrise according to the F3 screen. It does not set the time to 0 ticks, as far as I can tell. I am not used to the current command syntax of /time, though, so I'm not positive. But to be clear, I did the following:
Start Vanilla Minecraft 1.17.1
Create a new, Creative Mode, Singleplayer world
Hit F3
The screen says "Day 0"
Get a Cyan Bed from the creative inventory
Do "/weather thunder"
Sleep in the bed
The screen says "Day 1"
I'm pretty sure this is what beds are always supposed to do. If the issue is that the bed does not simply skip to the end of the storm, that is not clear from the report, or any other comments. Also, if it did skip the storm, instead of skipping to the next sunrise, you might end up waking up in the middle of the night, then just getting back into the bed. And if the bug is thinking that the time should stay the same, that makes no sense from a logical or physical perspective (not that Minecraft is known for obeying physics and logic anyway). Sorry for the long comment.
I think that it works as intended because sleeping on a bed let you skip to the next sunrise.