Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- local side = "back"
- local password = "fgt"
- local opentime = 5
- while true do
- x,y,z = rednet.receive()
- if y == "o3" then
- sleep(8)
- rs.setOutput(side,true)
- rednet.send(24,"o2")
- rednet.send(23,"u1")
- sleep(opentime)
- rs.setOutput(side,false)
- end
- if y == "o4" then
- sleep(2.5)
- rs.setOutput(side,true)
- rednet.send(24,"o2")
- rednet.send(23,"u1")
- sleep(opentime)
- rs.setOutput(side,false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement