marctew Oct 20th, 2019 (edited) 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand