Advertisement
Guest User

startup

a guest
Aug 1st, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. while true do
  2.   term.clear()
  3.   term.setCursorPos(1,1)
  4.   print("+-------------------------------------------------+")
  5.   term.setCursorPos(1,2)
  6.   print("|            AIRLOCK SECURITY CONTROLS            |")
  7.   term.setCursorPos(1,3)
  8.   print("+-------------------------------------------------+")
  9.   term.setCursorPos(1,4)
  10.   print("| Enter Password:                                 |")
  11.   term.setCursorPos(19, 4)
  12.  
  13.   input = read("*")
  14.  
  15.   if input == "password" then
  16.     redstone.setOutput("left", true)
  17.     redstone.setOutput("top", true)
  18.     sleep(5)
  19.     redstone.setOutput("left", false)
  20.     redstone.setOutput("top", false)
  21.   else
  22.     term.setCursorPos(19,4)
  23.     print("INVALID PASSWORD")
  24.     sleep(5)
  25.   end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement