Guest User

startup

a guest
May 25th, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. rednet.open("back")
  2. while true do
  3.  term.clear()
  4.  term.setCursorPos(1,1)
  5.  print("Please enter the password")
  6.  password = read("*")
  7.  if password == "password" then
  8.   print("You got the password right!")
  9.   redstone.setOutput("left", true)
  10.   sleep(3)
  11.   redstone.setOutput("left", false)
  12.  else
  13.   print("You got the password wrong! lololol")
  14.   rednet.broadcast("attack")
  15.  end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment