Have you ever been working on a map, then you start testing it, and it starts raining? Or you want it to rain, but it stops? You use the /weather clear command, but it just keeps coming back before long. Well, I used to have that problem, but have found a method to fix that. Here is a little tutorial on how to toggle among weather with infinite length with only a few command blocks.
First off, you'll need to create a new scoreboard. Run:
"/scoreboard objectives add Weather dummy"
This will create the scoreboard that we will use. Next, create a clock with repeating and chain command blocks. Remember to set the repeating one to "always active". In the command blocks, you'll need:
To change it to infinite clear weather, just use the command:
"scoreboard players set @a Weather 0"
To change it to rain, change the "0" to "1", or "2" for thunder.
I know this is not super complex, but I have found it to be useful, and I'm sure a few others will, too. If you have comments, concerns, or suggestions, feel free to say it!
Have you ever been working on a map, then you start testing it, and it starts raining? Or you want it to rain, but it stops? You use the /weather clear command, but it just keeps coming back before long. Well, I used to have that problem, but have found a method to fix that. Here is a little tutorial on how to toggle among weather with infinite length with only a few command blocks.
First off, you'll need to create a new scoreboard. Run:
"/scoreboard objectives add Weather dummy"
This will create the scoreboard that we will use. Next, create a clock with repeating and chain command blocks. Remember to set the repeating one to "always active". In the command blocks, you'll need:
"/execute @a[score_Weather_min=0,score_Weather=0] ~ ~ ~ /weather clear 1"
"/execute @a[score_Weather_min=1,score_Weather=1] ~ ~ ~ /weather rain 1"
"/execute @a[score_Weather_min=2,score_Weather=2] ~ ~ ~ /weather thunder 1"
To change it to infinite clear weather, just use the command:
"scoreboard players set @a Weather 0"
To change it to rain, change the "0" to "1", or "2" for thunder.
I know this is not super complex, but I have found it to be useful, and I'm sure a few others will, too. If you have comments, concerns, or suggestions, feel free to say it!