I have 13 redstone wires as input. When one wire is on all the wires on the rightleft of that are also on. What do I have to do to make sure that the only wire that is on in the output is the leftright most one? What logic do I use? If you can't visualize it I can upload some pics. Just tell me.
Added pics. Thanks for the response guys! Didn't think it would come so fast.
EDIT:I'm not a noob in redstone. I know most of the rules and am able to build relatively complicated stuff. I also know of a way of doing this, but it's not compact at all and I don't want to use it if you guys can come up with something better. I suspect that there is some kind of logic gate that does this(I don't really use too many different kinds of logic)
Your'e probably less looking for logic and more looking for a subtraction mask, since you're using the amount of power in the line for the data. Otherwise you could have just wired it backwards to get the right one lit...
Basically what you want to do is somehow copy the value that is in the line, send it to another line, subtract one unit from it, then use that result as a mask that goes to a selector bus which can turn on individual wires according to the value of redstone power that exists in the line.
It took me a good 20 minutes to figure out the question, so if this is way off base, then ignore it.
There seems to be no simple way to decode the signal once it arrives at the destination, but you could possibly do an AND gate between each wire and the inverse of the wire to its right. Then only one would be active. Compacting this would just be using redstone tricks to build this into a decoder bus.
I can do a build mockup of this in MC if that is necessary, just let me know
It took me a good 20 minutes to figure out the question, so if this is way off base, then ignore it.
There seems to be no simple way to decode the signal once it arrives at the destination, but you could possibly do an AND gate between each wire and the inverse of the wire to its right. Then only one would be active. Compacting this would just be using redstone tricks to build this into a decoder bus.
I can do a build mockup of this in MC if that is necessary, just let me know
Yeah that works too, you'd need to add a selector bit for the far right wire since there's no wire to the right of the right wire.
Edit; no I'm wrong, it doesn't need that since it turns off from the right.
Yeah that works too, you'd need to add a selector bit for the far right wire since there's no wire to the right of the right wire.
I disagree...if it currently lights up a line of wires, and we want the rightmost wire, then if the far right wire is lit, you just use that one (Also, all previous AND gates would be false). Direct passing this wire through would be safe, unless OP's design does something weird and not related to the pics.
I disagree...if it currently lights up a line of wires, and we want the rightmost wire, then if the far right wire is lit, you just use that one (Also, all previous AND gates would be false). Direct passing this wire through would be safe, unless OP's design does something weird and not related to the pics.
Yeah I was wrong. I had it backwards. I'm so used to lighting up progressively more wires rather than progressively less wires.
rightleft of that are also on. What do I have to do to make sure that the only wire that is on in the output is theleftright most one? What logic do I use?If you can't visualize it I can upload some pics. Just tell me.EDIT:Pics:
EDIT:I'm not a noob in redstone. I know most of the rules and am able to build relatively complicated stuff. I also know of a way of doing this, but it's not compact at all and I don't want to use it if you guys can come up with something better. I suspect that there is some kind of logic gate that does this(I don't really use too many different kinds of logic)
Basically what you want to do is somehow copy the value that is in the line, send it to another line, subtract one unit from it, then use that result as a mask that goes to a selector bus which can turn on individual wires according to the value of redstone power that exists in the line.
There seems to be no simple way to decode the signal once it arrives at the destination, but you could possibly do an AND gate between each wire and the inverse of the wire to its right. Then only one would be active. Compacting this would just be using redstone tricks to build this into a decoder bus.
I can do a build mockup of this in MC if that is necessary, just let me know
Yeah that works too, you'd need to add a selector bit for the far right wire since there's no wire to the right of the right wire.
Edit; no I'm wrong, it doesn't need that since it turns off from the right.
edit: the direction can also be changed by simply changing the direction of the repeaters
I disagree...if it currently lights up a line of wires, and we want the rightmost wire, then if the far right wire is lit, you just use that one (Also, all previous AND gates would be false). Direct passing this wire through would be safe, unless OP's design does something weird and not related to the pics.
Yeah I was wrong. I had it backwards. I'm so used to lighting up progressively more wires rather than progressively less wires.
Heh, fair enough.
You got it NoobJerk.