Advertisement
Plazter

pol

Jun 17th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. rednet.open("back")
  2. m = peripheral.wrap("bottom")
  3. while true do
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. print("Plazter's Mob Control v.1")
  7. print("Skriv: On eller Off")
  8. input = read()
  9.  
  10. if input == "exit" then
  11. break
  12. end
  13.  
  14. if input == "on" then
  15. rednet.broadcast("polle on")
  16. m.clear()
  17. m.setCursorPos(1,1)
  18. m.setTextColor(colors.white)
  19. m.write("Mobs:")
  20. m.setCursorPos(4,3)
  21. m.setTextColor(colors.lime)
  22. m.write("ON")
  23. end
  24.  
  25. if input == "off" then
  26. m.clear()
  27. m.setCursorPos(1,1)
  28. m.setTextColor(colors.white)
  29. m.write("Mobs:")
  30. m.setCursorPos(4,3)
  31. m.setTextColor(colors.red)
  32. m.write("Off")
  33. rednet.broadcast("polle off")
  34. end
  35.  
  36. if input == "On" then
  37. rednet.broadcast("polle on")
  38. m.clear()
  39. m.setCursorPos(1,1)
  40. m.setTextColor(colors.white)
  41. m.write("Mobs:")
  42. m.setCursorPos(4,3)
  43. m.setTextColor(colors.lime)
  44. m.write("ON")
  45. end
  46.  
  47. if input == "Off" then
  48. m.clear()
  49. m.setCursorPos(1,1)
  50. m.setTextColor(colors.white)
  51. m.write("Mobs:")
  52. m.setCursorPos(4,3)
  53. m.setTextColor(colors.red)
  54. m.write("OFF")
  55. rednet.broadcast("polle off")
  56. end
  57.  
  58. if input == "movie" then
  59. shell.run("secret/alongtimeago")
  60. end
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement