Rwd208

Turtle Door Program

Jul 13th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. while true do
  2.  term.clear()
  3.  term.setCursorPos(1, 1)
  4.  print("Please Enter Password:")
  5.  input = read("*")
  6.  if input == "COME IN" then
  7.   redstone.setOutput("left", true)
  8.   sleep(2)
  9.   redstone.setOutput("left", false)
  10.   else
  11.   term.setCursorPos(5, 5)
  12.   print("GO AWAY!")
  13.   term.setCursorPos(6, 6)
  14.   print("YOU DO NOT BELONG HERE!")
  15.  end
  16. end
  17. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment