Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(rs.getSides()) do
- if peripheral.getType(v) == "modem" then
- if not rednet.isOpen(v) then rednet.open(v) end
- end
- end
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Protocol: ")
- protocol = read()
- print("Command: ")
- cmd = read()
- rednet.broadcast(cmd, protocol)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement