Advertisement
LDDestroier

Door Password

Aug 3rd, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. side = "back"
  2. password = "iamthebatman"
  3. while true do
  4.   shell.run("clear")
  5.   print("")
  6.   print("  Enter password:")
  7.   print("  ~~~~~~~~~~~~~~~")
  8.   if read() == password then
  9.     print("Password correct")
  10.     sleep(1)
  11.     redstone.setOutput(side, true)
  12.     sleep(36)
  13.     redstone.setOutput(side, false)
  14.   else
  15.     print("Password incorrect")
  16.     sleep(6)
  17.   end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement