Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rec = 1724
- rednet.open("right")
- print(os.getComputerID())
- while true do
- local id, msg, dist = rednet.receive()
- if id == 1724 then
- if msg == "on" then
- rs.setOutput("bottom", true)
- print("on")
- elseif msg == "off" then
- rs.setOutput("bottom", false)
- print("off")
- end
- end
- sleep(.5)
- end
Add Comment
Please, Sign In to add comment