Hello Minecraft Forums, I've just come back to playing Minecraft after learning multiple programming languages (Java, C#, a little bit of Ruby) and I thought I'd give redstone another shot. I downloaded the Better Than Wolves mod and I became determined to create a lift using the pulley system. I got most if it done, but then I realized, how do I get it down when it's up top, or the other way around. Since I've been programming for the last couple of months I immediately went to an 'if' statement. Then it hit me, I have no idea how I would make an if statement using redstone.
Now that the needed knowledge (that isn't really too needed) is out of the way, it's time to ask a question! How might I make something in redstone that sends a signal one way if the output is on, and sends a signal another way if the output is off?
So what you need is one lever that does both jobs?
There is a very easy way of doing that.
(i can't give a photo right now but i'll explain it)
1. Place a block where you want it
2. On one side of the block, place a piece of redstone dust
3. Place a redtone torch on the side of the block that is opposite to the one chosen in 2.
4. In front of the torch place some redtone dust
5. Place a lever on one of the remaining sides of the block
6. Connect the rest of both sets of wiring to one of the two redstone leads (or whatever you call them) (one set for one lead, the other set for the other lead)
Everything from steps 1to 5 should be in a straight line. What should happen is that the torch is on and the redstone in front of it is on as well (the other piece of redstone should be off) . When you flip the lever, the torch is turned off (as well as the redstone after it), and the other side with the redstone only is on. This solution should work in your case and in many situations to do 2 things with one lever.
I stumbled across this by accident and i found it very interesting. I then saw this thread and wanted to share it with everyone.
Basically, an AND gate makes sort of a "IF x AND y on, THEN output is on.
NAND gate is the same thing but the output is inverted (IF x is on AND y is on, THEN output is off.
Then you could use an Imply gate. Basically, this is "IF x is on THEN output is off, wether b is on or off".
Play around with that, you can find the designs on the Minecraft Wiki.
Hello Minecraft Forums, I've just come back to playing Minecraft after learning multiple programming languages (Java, C#, a little bit of Ruby) and I thought I'd give redstone another shot. I downloaded the Better Than Wolves mod and I became determined to create a lift using the pulley system. I got most if it done, but then I realized, how do I get it down when it's up top, or the other way around. Since I've been programming for the last couple of months I immediately went to an 'if' statement. Then it hit me, I have no idea how I would make an if statement using redstone.
Now that the needed knowledge (that isn't really too needed) is out of the way, it's time to ask a question! How might I make something in redstone that sends a signal one way if the output is on, and sends a signal another way if the output is off?
Thank you.
Crockeo
"IF" is all about checking to see if certain conditions are met, and is fairly straightforward. An "AND" gate can be described as "IF A AND B are true", for instance. All such gates rest on the principle that there exists ONE combination of inputs which will cause a redstone wire to go Cold; if any of the inputs is not correct, then it sends a signal into the wire and makes it go Hot. Think about an OR gate where the only condition it will output a Zero, is if all of its inputs are themselves Zero. All you have to do is selectively invert the inputs so that a non-zero signal can still give a zero input to the Wire, the OR gate.
The problem I am guessing you face is not actually the "IF" conditions themselves, but the "THEN" part. "Ok," you say, "My conditions have been met. ...Now what?"
The form that "THEN" takes is generally a "Signal Blocker" to selectively enable or disable a data line. The classic form of this is an AND gate, where one input represents "Data" and the other represents "Enable". When "Enable" is 0, then no matter what "Data"'s input is, the output is 0. If "Enable" is 1 then the Output = Data, a 1 or 0 depending on whatever the Data is.
To have a signal going in 2 different directions, what you need are 2 "Signal Blockers" which activate under different conditions. When Blocker1's conditions are met, data flows through it, and when Blocker2's conditions are met, data will flow through it as well. If you want "Only one direction at a time", then the classic solution is to have the 2 blockers conditions be the inverse of each other. The result is that you can have a lever which when flipped Up will send data down Line1, and when down, will send it down Line2. This configuration is known as a "1 Bit De-Multiplexor", often referred to as a "Decoder" as well and forms the basis of Addresses in data-storage systems.
The only useful picture I have on hand is of a 1-bit Multiplexor, which does what you're looking for...only backwards:
Reverse the direction of the torches so that the output is the input and the inputs are the outputs and you've got yourself the configuration you're looking for. ...So long as you can decipher my cryptic diagram.
This may or may not have answered your question, but I hope I was at least a little bit helpful.
Hans Lemurson's Thread of Links:http://www.minecraftforum.net/topic/371610-hans-lemursons-thread-of-links/
Look here to find links to my inventions, creations, and my Youtube channel featuring Amazing Creations of Mine (Redstone engineering FTW!!!) and charming Music-Videos about clones. I also made "Minecraft in Minecraft" (2D platformer/building game). I'm currently trying to make a computer.
Hans Lemurson's Thread of Links:http://www.minecraftforum.net/topic/371610-hans-lemursons-thread-of-links/
Look here to find links to my inventions, creations, and my Youtube channel featuring Amazing Creations of Mine (Redstone engineering FTW!!!) and charming Music-Videos about clones. I also made "Minecraft in Minecraft" (2D platformer/building game). I'm currently trying to make a computer.
How might I make something in redstone that sends a signal one way if the output is on, and sends a signal another way if the output is off?
Remember that "torch jammed on" is - just as much as "torch jammed off" - a way of stopping signal getting through the torch.
Split your input signal into two and feed in into two blocks. Split your switcher signal into two, negate one side, and feed that into the same two blocks from the other side. Stick a torch on both blocks for output.
Im going to tell you this unfortunate fact right now, its almost impossible to get a lift to work in BTW, because once the platform blocks have stopped, they became fixated there, and the only way down is to destroy and rebuild the platform. The one, and only way to make a lift that even half works is use a detector block with a delay to find out when the lift is almost there, and to stop it when it gets close to the top, and you need a clock so that it will just bounce up and down instead of just dropping to the ground again.
Now that the needed knowledge (that isn't really too needed) is out of the way, it's time to ask a question! How might I make something in redstone that sends a signal one way if the output is on, and sends a signal another way if the output is off?
Thank you.
Crockeo
There is a very easy way of doing that.
(i can't give a photo right now but i'll explain it)
1. Place a block where you want it
2. On one side of the block, place a piece of redstone dust
3. Place a redtone torch on the side of the block that is opposite to the one chosen in 2.
4. In front of the torch place some redtone dust
5. Place a lever on one of the remaining sides of the block
6. Connect the rest of both sets of wiring to one of the two redstone leads (or whatever you call them) (one set for one lead, the other set for the other lead)
Everything from steps 1to 5 should be in a straight line. What should happen is that the torch is on and the redstone in front of it is on as well (the other piece of redstone should be off) . When you flip the lever, the torch is turned off (as well as the redstone after it), and the other side with the redstone only is on. This solution should work in your case and in many situations to do 2 things with one lever.
I stumbled across this by accident and i found it very interesting. I then saw this thread and wanted to share it with everyone.
NAND gate is the same thing but the output is inverted (IF x is on AND y is on, THEN output is off.
Then you could use an Imply gate. Basically, this is "IF x is on THEN output is off, wether b is on or off".
Play around with that, you can find the designs on the Minecraft Wiki.
"IF" is all about checking to see if certain conditions are met, and is fairly straightforward. An "AND" gate can be described as "IF A AND B are true", for instance. All such gates rest on the principle that there exists ONE combination of inputs which will cause a redstone wire to go Cold; if any of the inputs is not correct, then it sends a signal into the wire and makes it go Hot. Think about an OR gate where the only condition it will output a Zero, is if all of its inputs are themselves Zero. All you have to do is selectively invert the inputs so that a non-zero signal can still give a zero input to the Wire, the OR gate.
The problem I am guessing you face is not actually the "IF" conditions themselves, but the "THEN" part. "Ok," you say, "My conditions have been met. ...Now what?"
The form that "THEN" takes is generally a "Signal Blocker" to selectively enable or disable a data line. The classic form of this is an AND gate, where one input represents "Data" and the other represents "Enable". When "Enable" is 0, then no matter what "Data"'s input is, the output is 0. If "Enable" is 1 then the Output = Data, a 1 or 0 depending on whatever the Data is.
To have a signal going in 2 different directions, what you need are 2 "Signal Blockers" which activate under different conditions. When Blocker1's conditions are met, data flows through it, and when Blocker2's conditions are met, data will flow through it as well. If you want "Only one direction at a time", then the classic solution is to have the 2 blockers conditions be the inverse of each other. The result is that you can have a lever which when flipped Up will send data down Line1, and when down, will send it down Line2. This configuration is known as a "1 Bit De-Multiplexor", often referred to as a "Decoder" as well and forms the basis of Addresses in data-storage systems.
The only useful picture I have on hand is of a 1-bit Multiplexor, which does what you're looking for...only backwards:
Reverse the direction of the torches so that the output is the input and the inputs are the outputs and you've got yourself the configuration you're looking for. ...So long as you can decipher my cryptic diagram.
This may or may not have answered your question, but I hope I was at least a little bit helpful.
Look here to find links to my inventions, creations, and my Youtube channel featuring Amazing Creations of Mine (Redstone engineering FTW!!!) and charming Music-Videos about clones. I also made "Minecraft in Minecraft" (2D platformer/building game). I'm currently trying to make a computer.
A Latch with 2 AND gates as you describe is called a "Toggle Flip-Flop".
I know this first-hand from when I re-invented Toggles on my own last November.
Look here to find links to my inventions, creations, and my Youtube channel featuring Amazing Creations of Mine (Redstone engineering FTW!!!) and charming Music-Videos about clones. I also made "Minecraft in Minecraft" (2D platformer/building game). I'm currently trying to make a computer.
Remember that "torch jammed on" is - just as much as "torch jammed off" - a way of stopping signal getting through the torch.
Split your input signal into two and feed in into two blocks. Split your switcher signal into two, negate one side, and feed that into the same two blocks from the other side. Stick a torch on both blocks for output.