Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made By Djblocksaway
- --Easy Lock Version 1.1
- function os.pullEvent()
- local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
- if event == "terminate" then
- end
- return event, p1, p2, p3, p4, p5
- end
- term.clear()
- term.setCursorPos(1,1)
- print "Easy Lock 1.1"
- print " "
- write ("Password: ")
- correctpass = "123"
- pass = read("*")
- if pass == (correctpass) then
- print " "
- write("Correct! You may enter!")
- redstone.setOutput("left", true)
- rs.setOutput("right",true)
- rs.setOutput("back",true)
- rs.setOutput("bottom",true)
- rs.setOutput("top",true)
- rs.setOutput("front",true)
- sleep(4)
- redstone.setOutput("left", false)
- rs.setOutput("back",false)
- rs.setOutput("top",false)
- rs.setOutput("right",false)
- rs.setOutput("bottom",false)
- rs.setOutput("front",false)
- os.reboot()
- else
- print " "
- write("Incorrect! Rebooting!")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement