Mojira Archive
MC-122595

/weather command with duration 0 has the same weather for longer time

The bug

When running the command: /weather rain 0, it's expected to rain for 0 seconds and then become either clear or thunder. In other words, it's expected to change directly to another random weather. Currently it will continue to rain for a longer time.

Side note

1.12.2 displayed an error message when the duration was 0:

The number you have entered (0) is too small, it must be at least 1

Fixed

AgentToblerone

[Mojang] slicedlime

2017-11-27, 07:33 PM

2023-01-04, 12:13 PM

2023-01-04, 12:13 PM

5

4

Confirmed

Commands

Minecraft 17w48a - 21w06aMinecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 1.13-pre3, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, 1.15.2, 20w06a, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w06a

23w03a