Posted 27 October 2013 - 04:28 PM
Hello ! I'm doing some kind of tests to new player with some questions regarding the rules and stuff, I want a computer to send a redstone pulse to a mfr bundled cable depending on the user input, working with buttons for example. Imagine the question " Can you do automining in the overworld? " and 2 buttons at the bottom, I rather use normal buttons instead of a touchscreen so, it will wait for a rs.setInput("side", true) then send a signal to the bundled cable with rs.setBundledOutput("side" colors.white"), the problem is that I can't manage to do it, here's a little program I've wrote:
That's for a build where each button sends a signal to a different side of the computer then it reacts according to the input, BUT I want to prevent players from clicking both buttons at the same time, any help?
If I don't explain it correct, excuse me, English isn't my native language :/
while true do
if rs.getInput("left", true) then
rs.setOutput("back", true)
end
sleep(1)
rs.setOutput("back", false)
if rs.getInput("right", true) then
rs.setOutput("bottom", true)
end
sleep(1)
rs.setOutput("bottom", false)
end
That's for a build where each button sends a signal to a different side of the computer then it reacts according to the input, BUT I want to prevent players from clicking both buttons at the same time, any help?
If I don't explain it correct, excuse me, English isn't my native language :/