asteroidsteam icon

start

asteroidsteam | PRO | 04/05/18 11:08:07 PM UTC | 0 ⭐ | 418 👁️ | Never ⏰ | []
text |

390 B

|

None

|

0 👍

/

0 👎

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

Comments