marctew

HotelAccessKeyCheck

Oct 20th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local diskname = "Hotel KeyCard"
  2. while true do
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("Awaiting Access Key")
  6. local diskloc = disk.getLabel("right")
  7. if diskloc==diskname then
  8. term.clear()
  9. term.setCursorPos(1,1)
  10. write("Access Granted")
  11. disk.eject("right")
  12. redstone.setOutput("bottom", true)
  13. sleep(6)
  14. redstone.setOutput("bottom", false)
  15. end
  16. sleep(3)
  17. end
Add Comment
Please, Sign In to add comment