mojira.dev
MC-222596

Sleeping through thunderstorms resets time of day

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

I think that it works as intended because sleeping on a bed let you skip to the next sunrise.

Actually this is working as intended. Most of the time it doesn't work. Its spose to work in thunder storms and at night.

Does it actually make the time 0? Or just make it the next day (i.e. 24000)? 

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:

  1. Start Vanilla Minecraft 1.17.1

  2. Create a new, Creative Mode, Singleplayer world

  3. Hit F3

    1. The screen says "Day 0"

  4. Get a Cyan Bed from the creative inventory

  5. Do "/weather thunder"

  6. Sleep in the bed

    1. 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 believe this is working as intended. sleeping is supposed to increment to the next day and move the sun to sunrise

if you think it should be different that's a suggestion but this isn't a bug

mcpeachpies

(Unassigned)

Community Consensus

(Unassigned)

1.16.5, 21w14a, 1.17.1, 1.21

Retrieved