Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modemWireless = peripheral.wrap("front")
- local modemWired = peripheral.wrap("back")
- modemWireless.open(rednet.CHANNEL_BROADCAST)
- modemWired.open(rednet.CHANNEL_BROADCAST)
- while true do
- local ev,side,chan,replyChan,msg,dist = os.pullEvent("modem_message")
- local otherModem = modemWired
- if side == "right" then otherModem = modemWireless end
- otherModem.transmit(chan,replyChan,msg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement