cromulator icon

cc rednet pulse receiver

cromulator | PRO | 07/25/14 03:29:30 PM UTC | 0 ⭐ | 489 👁️ | Never ⏰ | []
Lua |

420 B

|

None

|

0 👍

/

0 👎

while true do -- makes the program loop
    rednet.open("left") -- listens for rednet
    id,message = rednet.receive() -- listens for rednet signal
    if id == 33 and message == "asdf" then -- checks sender and message content, then does something
        print("bonjourno!")
        rs.setOutput("right", true) --sends the redstone signal and pulses it with sleep
        sleep(3)
        rs.setOutput("right", false)
    end  -- needed
end -- needed

Comments