Advertisement
Guest User

Rail_disk\startup

a guest
Jun 6th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. print("Main Street Station Terminal")
  5. print("Type 'Destinations' for a list of routes, or")
  6. print("type 'go' to select your destination")
  7. input = read()
  8.  
  9. if input == "destinations" or "Destinations" then
  10.   print("Destinations:")
  11.   print("1. Quarry Station")
  12.   print("2. Creeper Canyon")
  13.   print("3. Mining Post 0")
  14.   event, key = os.pullEvent("key")
  15.     start()
  16.   end
  17.  
  18. if input == "go" or "Go" then
  19.   local event, key = os.pullEvent("key")
  20.  
  21.   if key == keys.one then
  22.     print("Quarry Station selected")
  23.     redstone.setBundledOutput("back", colors.white)
  24.     end
  25.  
  26.   if key == keys.two then
  27.     print("Creeper Canyon selected")
  28.     redstone.setBundledOutput("back", colors.orange)
  29.     end
  30.    
  31.   if key == keys.three then
  32.     print("Mining Post 0 selected")
  33.     redstone.setBundledOutput("back", colors.magenta)
  34.     end
  35.  
  36.   else
  37.     print("Invalid input")
  38.     sleep(2)
  39.     start()
  40.     end
  41.      
  42. else
  43.   print("Invalid input")
  44.   sleep(2)
  45.   start()
  46.   end
  47.  
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement