Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right") -- Change this to reflect the side your modem is connected to
- while true do
- local id, msg = rednet.receive()
- if msg == "lightson" then
- rs.setOutput("left", true) -- change this to reflect what side the redstone wiring is connected to for the lights
- else
- rs.setOutput("left", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement