Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- local id,msg = rednet.receive()
- if msg == "water" then
- local id2,msg2 = rednet.receive(3)
- if msg2 == nil then
- else
- if msg2 == 1 then
- redstone.setAnalogOutput("right",15)
- elseif msg2 == 2 then
- redstone.setAnalogOutput("right",0)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement