Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("top")
- tab = m.getMobIds()
- m.getMobData(tab[1])
- function os.pullEvent()]
- e = {os.pullEventRaw()}
- if e[1] == "terminate" then
- elseif e[1] == "disk" then
- shell.run("eject",e[2])
- end
- return unpack(e)
- end
- shell.run("label set pasword")
- while true do
- inp = read("*")
- if inp == "please" then
- print("password okay")
- rs.setOutput("right",true)
- sleep(3)
- rs.setOutput("right",false)
- else
- print("incorecct password")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment