SHARE
TWEET

road2

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