Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("top")
- rednet.open("top")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- local id, message = rednet.receive()
- print("Reactor Control computer")
- print("")
- print("Current TurbinePC command: "..message)
- print("")
- print("RUN command-------------")
- if message == "RUN" then
- redstone.setOutput("front",true)
- print("RUN command executed!")
- print("")
- print("--starting reactor--")
- else
- print("No RUN command executed")
- end
- print("")
- print("STOP command------------")
- if message == "STOP" then
- redstone.setOutput("front",false)
- print("STOP command executed!")
- print("")
- print("--stopping reactor--")
- else
- print("No STOP command execuded")
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement