minicl55

Untitled

Jun 2nd, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. shell.run('clear')
  2. admin = false
  3. print("Please click the player detector on the side of the computer so I can welcome you by your name!")
  4. event, user = os.pullEvent("player")
  5. shell.run('clear')
  6. if user == "minicl55" then
  7. admin = true
  8. print("Welcome, "..user.."! Please select an option:\n[1] Enable FF\n[2] Disable FF\n[3] Create wither\n[4] (Debug mode) Retract wither spawners\n[5] (Debug mode) Disable both FF\n[6] (Debug mode) Terminate program (Broken!)")
  9. else
  10. print("Welcome, "..user.."! Please select an option:\n[1] Enable FF\n[2] Disable FF\n[3] Create wither")
  11. end
  12. local event, choice = os.pullEvent("char")
  13. if choice == "1" then
  14. redstone.setBundledOutput("bottom", colors.white+colors.yellow)
  15. shell.run('startup')
  16. end
  17. if choice == "2" then
  18. redstone.setBundledOutput("bottom", colors.green)
  19. sleep(.5)
  20. redstone.setBundledOutput("bottom", 0)
  21. shell.run('startup')
  22. end
  23. if choice == "3" then
  24. redstone.setBundledOutput("bottom", 0)
  25. sleep(.5)
  26. redstone.setBundledOutput("bottom", colors.pink)
  27. sleep(.5)
  28. redstone.setBundledOutput("bottom", colors.pink+colors.magenta)
  29. sleep(.5)
  30. redstone.setBundledOutput("bottom", colors.blue)
  31. sleep(2)
  32. redstone.setBundledOutput("bottom", colors.pink)
  33. sleep(.3)
  34. redstone.setBundledOutput("bottom", colors.pink+colors.orange)
  35. sleep(1)
  36. redstone.setBundledOutput("bottom", 0)
  37. redstone.setBundledOutput("bottom", colors.white+colors.yellow)
  38. shell.run('startup')
  39. end
  40. if choice == "4" then
  41. if admin == true then
  42. redstone.setBundledOutput("bottom", colors.orange)
  43. sleep(1)
  44. redstone.setBundledOutput("bottom", 0)
  45. end
  46. shell.run('startup')
  47. end
  48. if choice == "5" then
  49. if admin == true then
  50. rs.setBundledOutput("bottom", 0)
  51. rs.setBundledOutput("bottom", colors.yellow+colors.pink)
  52. end
  53. if choice == 6 then
  54. if admin == true then
  55. error()
  56. end
  57. end
  58. else
  59. shell.run('startup')
  60. end
Advertisement
Add Comment
Please, Sign In to add comment