Advertisement
Guest User

door.lua

a guest
Jun 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. monitor = peripheral.wrap("right")
  2. monitor.clear()
  3. pass = "YTG123 is the best"
  4.  
  5. write("Please enter password: ")
  6. input = read()
  7.  
  8. if input == pass then
  9.     redstone.setOutput("back",true)
  10.     sleep(2.5)
  11.     redstone.setOutput("back",false)
  12. else
  13.     print("")
  14. end
  15. monitor.clear()
  16. monitor.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement