Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command_channel, message_channel = 16180, 57721
- wireless = true
- wired = false
- function on_all_modems(wireless, f, ...)
- local modems = {peripheral.find("modem", function(_, m) return m.isWireless() == wireless end)}
- for _, m in pairs(modems) do
- m[f](...)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement