Advertisement
Guest User

startup

a guest
May 29th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. password = "itemlock"
  3. while true do
  4.   term.clear()
  5.   term.setCursorPos(1,1)
  6.   print( "Josh's door lock")
  7.   write "Password:"
  8.   input = read("*")
  9.    if input == password then
  10.    redstone.setOutput("left",true)
  11.    sleep(10)
  12.   elseif input == "BD" then
  13.    break
  14.   else
  15.    print "Wrong PAssword! Who the fuck are you? try again?"
  16.     sleep(2)
  17.     redstone.setOutput("right",true)
  18.     sleep(10)
  19.   end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement