Advertisement
MatthewJ217

Remote shell (turtle)

Oct 27th, 2022 (edited)
1,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. peripheral.find("modem", rednet.open);
  2. while true do
  3.     local id, message = rednet.receive()
  4.     print(("Computer %d sent message %s"):format(id, message))
  5.     shell.run(message)
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement