Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setOutput("right", false)
- rednet.open("back")
- while (true)
- do
- local _, msg, _ = rednet.receive()
- if msg == "on" then redstone.setOutput("right", true)
- elseif msg == "off" then redstone.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment