Advertisement
goldfiction

receive_1_mc

Mar 17th, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. side = "back"
  2. password = "InsertYourPasswordHere!"
  3. rednet.open(side)
  4. while true do
  5. id, msg = rednet.receive()
  6. a = textutils.unserialize(msg)
  7. if a[1] == password then
  8. file = fs.open("tempfile", "a")
  9. for i = 2, #a do
  10. file.write(a[i])
  11. end
  12. file.close()
  13. shell.run("tempfile")
  14. fs.delete("tempfile")
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement