Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mainChannel = 21
- local modem = peripheral.wrap("back")
- local event, side, channel, replyChannel, message, distance
- local input
- modem.open(mainChannel)
- while true do
- input = read()
- modem.transmit(mainChannel, mainChannel, input)
- event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- message = tostring(message)
- print(message)
- end
Advertisement
Advertisement