mojira.dev
MC-36947

/weather clear <time in seconds> doesn't clear weather for anywhere near the amount given

Whatever time is given, the weather always comes back earlier. For example, 1'000'000 seconds would be equal to 11.6 DAYS, but it starts raining again over the course of maximally the next hour D:

Comments 8

Is time part of the command measured in ticks or in seconds?
1,000,000 ticks would be about 0.6 days though? So I'm not sure. My calculations may be off. Someone would have to clarify for me.

@Neospector the command description in /help says it's in seconds, but even if it were in ticks, 0.6 days are nowhere near the hour in which it usually starts raining again

Can confirm. Maybe the time is cleared when quitting?

@Hawk nope, it's happening on a server that is permanently running as well as single player (without quitting).

When you supply a time, it checks if it is between 1 and 1,000,000. If it is, it is then multiplied by 20 to, I assume, convert it from seconds to ticks. The thing is that the "clear" argument doesn't accept the time you supply. When you do "/weather clear 1000000" it does 4 things:

1: set rainTime to 0
2: set thunderTime to 0
3: set raining to false
4: set thundering to false

Basically, it acts the same as "/toggledownfall" because it doesn't start a timer that has to end before the game tries to change the weather again.

For a bit more information, here are the other two weather options:

"rain"

1: set rainTime to user-supplied time
2: set raining to true
3: set thundering to false

"thunder"

1: set rainTime to user-supplied time
2: set thunderTime to user-supplied time
3: set raining to true
4: set thundering to true

@Cody Thanks for checking the code 🙂
I didn't think of doing so myself for some reason, but this means it's a bug, right? Because they say it clears the weather for the amount of time given...

I seem to be having this problem, at least I think so. I type /weather clear 1000000 to stop rain and thunder, but since 1.7❓ it starts again in a matter of a Minecraft day or two.

Still happening in 14w02b. It's as if all I've done is set /weather clear without any time.

Julian Dunskus

michael

Unconfirmed

/weather, clear, rain, weather

Minecraft 1.5.2, Minecraft 1.6.4, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.4, Minecraft 14w02c

Minecraft 14w07a

Retrieved