tomtrein

Untitled

Jul 15th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local pullEvent = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. local isiton = false
  4. while true do
  5. term.clear()
  6. term.setCursorPos(1, 1)
  7. print("Please Enter Password:")
  8. input = read("*")
  9. if input == "passcode" then
  10. if isiton == false then
  11. redstone.setOutput("right", true)
  12. isiton = true
  13. else
  14. redstone.setOutput("right", false)
  15. isiton = false
  16. end
  17. elseif input == "terminate" then
  18. os.pullEvent = pullEvent
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment