Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pc_listen()
- local monitor = peripheral.wrap("right")
- local x=1
- local y=1
- monitor.clear()
- rednet.open("left")
- monitor.setCursorPos(x,y)
- while true do
- id,message = rednet.receive()
- print("Device "..id..": ")
- print(message)
- monitor.write("Turtle "..id..": ")
- y=y+1
- monitor.setCursorPos(x,y)
- monitor.write(message)
- y=y+1
- monitor.setCursorPos(x,y)
- end
- end
- pc_listen()
Add Comment
Please, Sign In to add comment