Advertisement
MCFunRide

Cinema System Controller Edition

Apr 7th, 2015
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. rednet.open("back")
  2. m = peripheral.find("monitor")
  3. term.setTextColor(colors.green)
  4. term.setBackgroundColor(colors.blue)
  5. term.clear()
  6. print("Cinema Console")
  7. print()
  8. rednet.broadcast("hoston")
  9.  
  10. while true do
  11. write("Console>")
  12. command = read()
  13. if command == "exec nyan" then
  14. rednet.broadcast("nyanrun")
  15. elseif command == "exec kyle" then
  16. rednet.broadcast("kylerun")
  17. elseif command == "shutdown" then
  18. print("Thank you for using Cinema Console Remote.")
  19. sleep(3)
  20. os.shutdown()
  21. elseif command == "clear" then
  22. term.clear()
  23. term.setCursorPos(1,1)
  24. elseif command == "clearMon" then
  25. rednet.broadcast("clearmon")
  26. elseif command == "difficult" then
  27. rednet.broadcast("Difffi")
  28. elseif command == "playMusicDisk" then
  29. rednet.broadcast("playaudio")
  30. elseif command == "stopMusicDisk" then
  31. rednet.broadcast("stopaudio")
  32. elseif command == "exec endof" then
  33. term.setTextColor(colors.blue)
  34. rednet.broadcast("startend")
  35. term.setTextColor(colors.green)
  36. elseif command == "blankScreen" then
  37. rednet.broadcast("blank")
  38. else
  39. print("Bad command or file name.")
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement