Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- a, cmd, b = rednet.receive()
- print("recieved")
- if cmd == "open" then
- redstone.setOutput("bottom",true)
- shell.run("startup")
- elseif cmd == "test" then
- print("testing")
- test = redstone.getOutput("bottom")
- print(test)
- if test == true then
- rednet.send(8,"true")
- print("reported true")
- shell.run("startup")
- else
- rednet.send(8,"false")
- print("reported false")
- shell.run("startup")
- end
- else
- redstone.setOutput("bottom",false)
- shell.run("startup")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement