5

I am making a server and it rains a lot. Rain lags up my computer so every time this happens, I have to type in /toggledownfall. Is there a way to make a simple redstone creation that detects rain, that I can attach to a command block with /toggledownfall? (Pics are very helpful)

  • It's funny how neither answer actually answers the question. They just provide workarounds really. – AER May 20 '15 at 0:53
  • 2
    @EatMyTacoCrumbs it's an XY-Problem: Solving the real issue (Y, i.e. turn off the rain) is often preferable to solving the issue OP thinks he has for lack of better knowledge (X, i.e. detect rain to toggle it off). – MrLemon Oct 16 '15 at 8:21
3

For a true rain detector, I've seen a few designs that use snow golems (which die in rain) on pressure plates. But for a more reusable design, I like this one, which uses fire:

EDIT According to @Mystery, this works in the following way: "The two comparators are used as a countdown. If the fire extinguishes, the countdown starts. If it extinguishes a second time before the countdown is over, the light will turn on. The time, the fire naturally stays on is larger than the countdown time. Only rain will cause it to go out that frequently." (Thanks, Mystery, for explaining!)

EDIT2 Now that I understand it, let me see if I can go into a bit more detail.

The piston and its adjacent redstone block/circuit are a BUD switch, which toggles between on and off whenever a block update happens near it (such as a fire being lit or extinguished). Every time it toggles on, it sends a signal into the line above the two opposite-facing, side-by-side comparators. Because the comparators keep the signal strength coming out of them the same, the redstone will naturally decay by 1 per cycle around that loop (because the ledge has 2 blocks to travel, but the comparator will only maintain strength for 1). This creates a "cooldown timer", by which the torch on the side of the ledge will stay off a bit longer than the pulse; whenever the BUD trips, it resets the circuit, keeping the torch off even longer.

The comparators on the left side are similar in that they create a fade-out timer. The only difference is that the signal from it is controlled by the torch on the ledge, and it's maintained one block longer with the second comparator. So when the torch is off, the lamp will stay on for a short while until that circuit dies out. The key is that the first circuit in the middle naturally decays at the same rate as the one on the left. That means after a single pulse of the BUD, as soon as the light would turn off, it's reset by the torch and kept on. However, if the torch keeps getting held off--say, by many BUD trips occurring in a short timespan because the fire keeps going out and getting re-lit by the dispenser--it'll give the left circuit time to fade out, and the light will turn off. As soon as the rain stops, the fire lasts longer between BUD triggers, giving the first circuit time to turn off, which turns the left circuit back on and lights the lamp again.

I hope that helps! (Of course, in your case, just replace the lamp with command blocks to turn off the rain.)

  • 1
    You should explain what the mecanism is about, so your answer will still be useful if the video isn't working anymore. – Anton Jun 1 '15 at 22:33
  • Wish I could explain it, but I don't really understand how it works myself XD I know it uses the fire to trigger a BUD switch, but I don't understand how it doesn't trigger the detector everytime the fire naturally goes out. So...yeah, I linked to the video because I know the design works, but I can't explain it myself... – IceMetalPunk Jun 1 '15 at 22:53
  • 1
    The two comparators are used as a countdown. If the fire extinguishes, the countdown starts. If it extinguishes a second time before the countdown is over, the light will turn on. The time, the fire naturally stays on is larger than the countdown time. Only rain will cause it to go out that frequently.(you can include this in your answer) – Mystery Oct 25 '15 at 12:59
12

You don't need one. There's this beautiful command called /weather clear. You can even specify for how long you want the weather to be clear. You can just run /weather clear 999999 each in-game day (employing a simple daylight sensor), and you will have no rain.

7

You can do more than that. You can disable the rain completely.

In Options -> Video you can disable rain particles (so it will rain, only you won't see it), AFAIK it is in Animations or Particles submenu.

Or you can use daylight sensor, because rain means drop in light -> weaker redstone signal, what you can make to start your redstone circuitry.

An active daylight sensor: powers adjacent redstone dust, including below it, and redstone comparators facing away from the daylight sensor, to a power level that depends on the time of day, the weather, and the daylight sensor's sky light level (see tables below) http://minecraft.gamepedia.com/Daylight_Detector

Rain means drop in light by 3.

And remember that you can rather use /weather clear [seconds] , so the nice weather will be long enough.

  • +1 for disabling rain clientside. I personally really like the rain and the ambiance it provides, as do some other weirdos. :) – Kaz Wolfe Oct 25 '15 at 19:28
0

To test this out I created a machine that uses a snow golem to detect rain, to prevent lightning.

  1. Snow golems take damage when killed, and drop items (Snowballs), so put it in the spawn chunk, and have a dropper under the hopper. The dropper should face into a chest.
  2. Have a repeating clock ticking into the dropper, and also have a comparator coming out of the dropper.
  3. Place a redstone dust next to the comparator and have a redstone torch on the other side of that dust then the comparator.
  4. Then have a redstone repeater coming out of the output of the comparator, and set a redstone line with command block of your choice (weather clear, toggledownfall, say, tellraw @a ["Rain ceasing"], or watever you want).
  • This is simpler then the fire extinguishing method. and it makes more logical sense too! if you will walk out of the chunk though, both will stop working. – Blockhead Dev Aug 22 '17 at 23:16
0

There is a command in game that will turn off weather cycles, which means that it won't cycle trough rain,storm and clear anymore.

/gamerule doWeatherCycle true

If by any means the Cycle as turned off during any undesired condition, simply do

/weather clear

To clean it;

/weather rain

To make it rain!;

/weather thunder

To set it to storm.

It only works in version 1.11 and beyond, it works in pocket edition but does not work in bedrock as it was not added yet.

Source

  • 2
    Can you explain what this actually does? Not everyone who plays this game will just know what that command does off-hand. Its best to summarize your answer and provide links for relevant information. – Kyle Rone Nov 8 at 20:52
  • 1
    Edited with the whole explanation and some extra stuff... – Bruno Rodrigues Nov 8 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.