Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- id = rednet.recieve(5)
- rednet.send(id, "mine")
- rednet.send(id, "free")
- while id != null do
- newid, command = rednet.receive()
- if newid == id then
- if command == "move" then
- newid, position = rednet.receive()
- targetX, targetY, targetZ = position
- shell.run(predictPath)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement