Advertisement
Martian96

ComputerCraft - Key Card DoorLock

Nov 19th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. rs.setOutput("bottom", true)
  2. while true do
  3. if disk.isPresent("top") then
  4. if fs.exists("disk/.security/key") then
  5. shell.run("disk/.security/key")
  6. if pass == "..." then
  7. rs.setOutput("bottom", false)
  8. sleep(3)
  9. rs.setOutput("bottom", true)
  10. else
  11. disk.eject("top")
  12. end
  13. else
  14. disk.eject("top)
  15. end
  16. end
  17. sleep(0.1)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement