Advertisement
Craft4Cube

TextStuff

Sep 4th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. mon1=peripheral.wrap("back")
  2. rednet.open("left")
  3. print(os.getComputerID())
  4. while true do
  5. id,message = rednet.receive()
  6. if message == "f_red" then
  7. mon1.setTextColor(colors.red)
  8. else
  9. if message == "f_green" then
  10. mon1.setTextColor(colors.lime)
  11. else
  12. if message == "f_blue" then
  13. mon1.setTextColor(colors.blue)
  14. else
  15. if message == "f_white" then
  16. mon1.setTextColor(colors.white)
  17. else
  18. if message == "b_red" then
  19. mon1.setBackgroundColor(colors.orange)
  20. else
  21. if message == "b_green" then
  22. mon1.setBackgroundColor(colors.green)
  23. else
  24. if message == "b_blue" then
  25. mon1.setBackgroundColor(colors.cyan)
  26. else
  27. if message == "b_black" then
  28. mon1.setBackgroundColor(colors.black)
  29. else
  30. mon1.write(message)
  31. cX,cY = mon1.getCursorPos()
  32. mon1.setCursorPos(1,cY+1)
  33. end
  34. end
  35. end
  36. end
  37. end
  38. end
  39. end
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement