Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1.  
  2. function start()
  3. term.clear()
  4. os.pullEvent = os.pullEventRaw
  5. term.setTextColor(colors.green)
  6. term.setCursorPos(15, 1)
  7. print("Admin Monitor System")
  8. term.setTextColor(colors.white)
  9. term.setCursorPos(1, 2)
  10. end
  11.  
  12. -- Change the right to any direction on the pc
  13. monitor = peripheral.wrap("top")
  14.  
  15. --Sets the input of what the monitors going to say
  16. function input()
  17. term.clear()
  18. monitor.clear()
  19. start()
  20. term.setCursorPos(1, 2)
  21. print("What do you want to type in the Monitor:")
  22. input3 = read()
  23. monitor.setCursorPos(1, 1)
  24. monitor.write(input3)
  25. term.clear()
  26. term.setCursorPos(1, 1)
  27. end
  28. x, y = mon.getCursorPos()
  29. while true do
  30. term.clear()
  31. term.setCursorPos(1, 1)
  32. print("Please Enter Password:")
  33. input = read("*")
  34. if input == "butts" then
  35. redstone.setOutput("back", true)
  36. sleep(5)
  37. redstone.setOutput("back", false)
  38. else print("You didn't say the magic word!")
  39. end
  40. end
  41. --Function calls
  42. start()
  43. os.sleep(1)
  44. input()
  45. os.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement