rungholt

buck

Aug 15th, 2021 (edited)
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2. modem.open(1)
  3. while true do
  4.     local event, peripheral_name, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  5.    if message == "exit" then
  6.       break
  7.    end
  8.    shell.run(message)
  9. end
  10. modem.close(1)
Add Comment
Please, Sign In to add comment