Advertisement
CelticCoder

RemoteTurtleStartup

Oct 4th, 2023 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. rednet.open("left")
  2. id = rednet.recieve(5)
  3. rednet.send(id, "mine")
  4. rednet.send(id, "free")
  5. while id != null do
  6.     newid, command = rednet.receive()
  7.     if newid == id then
  8.         if command == "move" then
  9.             newid, position = rednet.receive()
  10.             targetX, targetY, targetZ = position
  11.             shell.run(predictPath)
  12.         end
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement