SHARE
TWEET

road0

hevohevo Jun 9th, 2016 (edited) 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- build a road
  2.  
  3. -- 無線通信を受けて建設開始
  4. turtle.select(16)
  5. turtle.refuel()
  6.  
  7. turtle.select(1)
  8.  
  9.  
  10. while true do
  11.   rednet.open("right")
  12.   local id, msg = rednet.receive()
  13.   print(id, msg)
  14.  
  15.   if msg == "start_build" then
  16.     break
  17.   elseif msg == "calling_turtle" then
  18.     turtle.digUp()
  19.     turtle.up()
  20.     turtle.up()
  21.   end
  22. end
  23.  
  24. for i=1, 40 do
  25.   turtle.forward()
  26.   turtle.digDown()
  27.   turtle.placeDown()
  28. end
  29.  
  30. turtle.digDown()
  31. turtle.down()
  32. turtle.digDown()
  33. turtle.down()
  34. turtle.placeUp()
RAW Paste Data
Top