daily pastebin goal
41%
SHARE
TWEET

CC: cyclone1

hevohevo Mar 29th, 2016 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- cyclone1
  2. -- サイクロン型直下掘り
  3.  
  4. -- ######### Config #########
  5. local maxDepth = 10 -- 真下に掘り進む回数
  6.  
  7. -- ######### Function #########
  8. function kaitenChokkabori()
  9.   for i=1,4 do  -- (2)-①
  10.     turtle.turnLeft()
  11.     turtle.dig()
  12.   end
  13.  
  14.   turtle.digDown()  -- (2)-②
  15.   turtle.down()
  16. end
  17.  
  18. -- ######### Main #########
  19. -- (1) 燃料補給
  20. turtle.select(1)
  21. turtle.refuel()
  22.  
  23. -- (2) maxDepth回だけ回転直下掘りを繰り返す
  24. for i=1,maxDepth do
  25.   kaitenChokkabori()
  26. end
  27.  
  28. -- (3) maxDepth回だけ上昇する
  29. for i=1,maxDepth do
  30.   turtle.up()
  31. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top