Guest User

server

a guest
Sep 24th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local done = false
  3. while done == false do
  4.   write("Password:")
  5.   local password = read()
  6.   term.clear()
  7.   term.setCursorPos(1, 1)_
  8.  
  9.   if password == "thing" then
  10.     done = true
  11.   elseif password == "thing2" then
  12.           print("Access Granted")
  13.           redstone.setOutput("right", true)
  14.           sleep(5)
  15.           redstone.setOutput("right", false)
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment