kremnev8

testpaste

Mar 1st, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. tab = m.getMobIds()
  3. m.getMobData(tab[1])
  4.  
  5. function os.pullEvent()]
  6. e = {os.pullEventRaw()}
  7. if e[1] == "terminate" then
  8. elseif e[1] == "disk" then
  9. shell.run("eject",e[2])
  10. end
  11. return unpack(e)
  12. end
  13.  
  14. shell.run("label set pasword")
  15. while true do
  16. inp = read("*")
  17. if inp == "please" then
  18. print("password okay")
  19. rs.setOutput("right",true)
  20. sleep(3)
  21. rs.setOutput("right",false)
  22. else
  23. print("incorecct password")
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment