Advertisement
MuChT007

FTB Pseudopass

Apr 15th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. code = "81652"
  2.  
  3. while true do
  4. write("Pin ?:   ")
  5.  
  6. pass = read()
  7. os.pullEvent = os.pullEventRaw
  8.    
  9.     if pass == (code) then
  10.         write("Authorised access")
  11.         redstone.setOutput("top",true)
  12.         sleep(5)
  13.         redstone.setOutput("top",false)
  14.         term.clear()
  15.         term.setCursorPos(1,1)
  16.  
  17.     else
  18.         write("access denied ")
  19.         sleep(5)
  20.         term.clear()
  21.         term.setCursorPos(1,1)
  22.        
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement