SHARE
TWEET

Untitled

a guest Nov 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local dig, shft, dir = ...
  2.  
  3. function fw()
  4.     turtle.dig()
  5.     turtle.forward()
  6.  
  7. top = false
  8. for i=1,dig do
  9.     fw()
  10.     turtle.turnLeft()
  11.     turtle.dig()
  12.     turtle.digUp()
  13.     turtle.up()
  14.     turtle.dig()
  15.     turtle.turnRight()
  16.     turtle.turnRight()
  17.     turtle.dig()
  18.     turtle.down()
  19.     turtle.dig()
  20.     turtle.turnLeft()
  21. end
  22.  
  23. turtle.turnRight()
  24. turtle.turnRight()
  25. for i=1,dig do
  26.     fw()
  27. end
  28. if dir=="right" then
  29.     turtle.turnRight()
  30. else
  31.     turtle.turnLeft()
  32. end
  33. for i=1,shft do
  34.     fw()
  35. end
  36.  
  37.  
  38. if dir=="right" then
  39.     turtle.turnRight()
  40. else
  41.     turtle.turnLeft()
  42. 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