biggles2206

Inproved Door Pass

Jul 30th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.  term.clear()
  3.  term.setCursorPos(1, 1)
  4.  print("Please Enter Password:")
  5.  input = read("*")
  6.  if input == "door" then
  7.   redstone.setOutput("back", true)
  8.   sleep(2)
  9.   redstone.setOutput("back", false)
  10.   end
  11.   elseif input == "shell" then
  12.   shell.exit()
  13.   end
  14.   else
  15.   print("Access Denied.")
  16.  end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment