Advertisement
Guest User

read.lua

a guest
Apr 26th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. message2=0
  2. message=1
  3. rednet.open("left")
  4. monitor = peripheral.wrap("top")
  5. term.redirect(monitor)
  6. term.setCursorBlink(false)
  7. term.setTextColor(colors.black)
  8. term.setBackgroundColor(colors.white)
  9.  
  10. term.clear()
  11. term.setCursorPos(1,1)
  12.  
  13. while true do
  14.     ID,X = rednet.receive()
  15.     ID,Y = rednet.receive()
  16.     ID,Z = rednet.receive()
  17.     term.clear()
  18.     term.setCursorPos(1,1)
  19.     term.write("X="..X)
  20.     term.setCursorPos(1,2)
  21.     term.write("Y="..Y)
  22.     term.setCursorPos(1,3)
  23.     term.write("Z="..Z)
  24.     os.sleep(1)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement