Advertisement
coderboy

Lock1

Mar 7th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. while true do
  3.  term.clear()
  4.  term.setCursorPos(1, 1)
  5.  print("Please Enter Password:")
  6.  input = read("*")
  7.  if input == "password" then
  8.   redstone.setOutput("back", true)
  9.   sleep(2)
  10.   redstone.setOutput("back", false)
  11.  end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement