Advertisement
Guest User

test

a guest
Oct 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. mon = peripheral.wrap("right")
  2. rednet.open("left")
  3. mon.clear()
  4. mon.setCursorPos(1, 0)
  5. while true do
  6.   event, sender, message = os.pullEvent("rednet_message")
  7.   x, y = mon.getCursorPos()
  8.   if y == 5 then
  9.     mon.scroll(1)
  10.     y = 4
  11.   end
  12.   mon.setCursorPos(1, y+1)
  13.   mon.write(message)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement