Sapish

Library Code: GLASS Remote

Jan 15th, 2021 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local modem = peripheral.wrap('back')
  2. term.clear()
  3. term.setCursorPos(1, 1)
  4. modem.open(1)
  5. print('Awaiting Input')
  6. local txt = read()
  7. modem.transmit(2,1,txt)
  8. local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent('modem_message')
  9. print(message)
Add Comment
Please, Sign In to add comment