Advertisement
Guest User

startup

a guest
Apr 23rd, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. while true do
  2.  
  3. term.setTextColor(2)
  4. print("Options")
  5. print("1 = Spawner On")
  6. print("2 = Spawner Off")
  7. print("3 = Door Open")
  8. print("4 = Door Close")
  9. print("5 = Reset")
  10. print("6 = Auto-Kill On")
  11. print("7 = Auto-Kill Off")
  12. print("I = Info")
  13. input = io.read()
  14. if input == "1" then
  15.    rs.setOutput("top",false)
  16.    rs.setOutput("bottom",false)
  17. elseif input == "2" then
  18.    rs.setOutput("top",true)
  19.    rs.setOutput("bottom",true)
  20. elseif input == "I" then
  21. print("Info")
  22. print("To use the spawner, put a safari net with the wanted mob into the spawner.")
  23. print("Then toggle the spawner on using the computer")
  24. sleep(20)
  25. elseif input == "3" then
  26.   rs.setOutput("left",true)
  27. elseif input == "4" then
  28.   rs.setOutput("left",false)
  29. elseif input == "5" then
  30.   rs.setOutput("bottom",true)
  31.   rs.setOutput("left",true)  
  32. elseif input == "6" then
  33.   rs.setOutput("right",false)
  34. elseif input == "7" then
  35.   rs.setOutput("right",true)
  36. else
  37. print("Invalid Entry")
  38. end
  39. term.clear()
  40. term.setCursorPos(1,1)
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement