mojira.dev
MC-108806

The next weather change after using "/weather clear" will always be a thunderstorm

The Bug

When command /weather clear is executed, next type of weather is always thunder.

How to Reproduce

Run:

/weather clear 1

Observed Behavior

The next weather change after executing the "/weather clear" command will always be a thunderstorm.

Expected Behavior

The next weather change after executing the "/weather clear" command would not always be a thunderstorm.

Linked issues

Attachments

Comments 19

AgentToblerone

Confirmed in Minecraft 1.12.2. Easy to reproduce, typing /weather clear 1 to make it thunder within a few seconds.

AgentToblerone

Confirmed 18w01a

AgentToblerone

Confirmed 18w03b

Note that as of the command re-write for 1.13, 0 is now a valid value for the duration. This allows /weather clear 0, which mimics the effects of sleeping in a bed. Whereas in 1.12.2 there was no way to perfectly simulate sleeping (the closest thing being /weather rain 1.

I think it's important to be able to simulate sleep, and I think both of the aforementioned commands are quite unintuitive. The ideal would be that /weather clear with no duration actually mimics sleeping exactly, which, as of now, is definitely not the case.

As of 18w15a, /weather clear will clear the weather for exactly 6000 ticks (5 minutes), at which point a thunder storm begins.
If the default is changed to 0, instead of 6000, then /weather clear will have the same effect as sleeping in a bed.

(/weather thunder 1 can be used to replicate sleeping)

9 more comments

Can confirm this behavior in 21w40a. Here are some extra details regarding this problem.

The Bug:

The next weather change after executing the "/weather clear" command will always be a thunderstorm.

Steps to Reproduce:

  • Ensure that the "doWeatherCycle" gamerule is set to "true".

/gamerule doWeatherCycle true
  • Set the weather to "clear" for a very small amount of time.

/weather clear 1
  • Pay close attention as to what the weather changes to after being set to "clear".

Observed Behavior:

The next weather change after executing the "/weather clear" command will always be a thunderstorm.

Expected Behavior:

The next weather change after executing the "/weather clear" command would not always be a thunderstorm.

Can confirm in 21w41a.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19 and 22w24a.

etunnos

(Unassigned)

Confirmed

Platform

Normal

Commands

Minecraft 1.10.2, Minecraft 16w41a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w45b, ..., 1.19.3, 1.20.1, 1.20.4, 1.21.3, 24w45a

Retrieved