Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- local isiton = false
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password:")
- input = read("*")
- if input == "passcode" then
- if isiton == false then
- redstone.setOutput("right", true)
- isiton = true
- else
- redstone.setOutput("right", false)
- isiton = false
- end
- elseif input == "terminate" then
- os.pullEvent = pullEvent
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment