Advertisement
TheOutcast5

Terminal

Jan 7th, 2012
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. pass = "1"
  2.  
  3. shell.run("clear")
  4. print "1- Activate Minecart"
  5.  write "Enter Digit Here: "
  6.   input = read()
  7.    if pass == input then
  8.     shell.run("clear")
  9.     print "Minecart Activated"
  10.     sleep(2)
  11.     redstone.setOutput("back",true)
  12.     sleep(5)
  13.     redstone.setOutput("back",false)
  14.     shell.run("clear")
  15.     print "Terminal Shutting Down"
  16.     sleep(2)
  17.     os.shutdown()
  18.    else
  19.     shell.run("clear")
  20.     print "You have enter the wrong code"
  21.     sleep(2)
  22.     print "Terminal Shutting Down"
  23.     sleep(2)
  24.     os.shutdown()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement