lecouch

rn

Sep 1st, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. periphType = peripheral.getType("left")
  2. if periphType == "modem" then
  3. rednet.open("left")
  4. else
  5. rednet.open("right")
  6. end
  7. print("> listening for activation parameters . . . ")
  8. while true do
  9. senderID, argIn, programID = rednet.receive("startComb")
  10. break
  11. end
  12. print("> parameters received, starting the dig")
  13. shell.run("turtleComb", argIn[1], argIn[2])
Advertisement
Add Comment
Please, Sign In to add comment