Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ID : 5
- rednet.open("left")
- redstone.setOutput("right", false)
- while true do
- local event, side, sCh, rCh, msg, dist = os.pullEvent()
- if event == "modem_message" then
- local ID, Message, Protocole = rednet.receive()
- if (ID == 4) and (Message == "On") then
- redstone.setOutput("right", true)
- --print("on")
- elseif (ID == 4) and (Message == "Off") then
- redstone.setOutput("right", false)
- --print("off")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement