cobra_tomtrein

chair2

Jul 29th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. mon = peripheral.wrap("bottom")
  2. mon.clear()
  3. mon.setTextScale(2)
  4. rednet.open("left")
  5. while true do
  6. id, message = rednet.receive()
  7. if id == 827 then
  8. words = {}
  9. for word in message:gmatch("%w+") do table.insert(words, word) end
  10. for i=2, #words+1, 2 do
  11. mon.clear()
  12. mon.setCursorPos(1, 1)
  13. if words[i] == nil then
  14. mon.write(words[i-1])
  15. else
  16. mon.write(words[i-1].." "..words[i])
  17. end
  18. os.sleep(0.25)
  19. end
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment