Advertisement
marctew

HotelAccessKeyCheckLeave

Oct 20th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 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("left")
  7. if diskloc==diskname then
  8. term.clear()
  9. term.setCursorPos(1,1)
  10. write("Exit Granted. Access Key Destroyed")
  11. redstone.setOutput("bottom", true)
  12. sleep(6)
  13. redstone.setOutput("bottom", false)
  14. end
  15. sleep(3)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement