Ch4oS

MC-Computercraft Password System

Sep 2nd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. write("Password >")
  2.  
  3. local s, input = pcall(read, "*")
  4. if input == "1234" then
  5.  
  6. shell.run("clear")
  7. print("Accepted")
  8. sleep(1)
  9. shell.run("clear")
  10.  
  11. else
  12.  
  13. shell.run("clear")
  14. print("Wrong Password")
  15. sleep(1)
  16.  
  17. os.reboot()
  18.     end
Advertisement
Add Comment
Please, Sign In to add comment