SHARE
TWEET

Untitled

a guest Feb 23rd, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function refuel()
  2.     turtle.select(1)
  3.     while (turtle.refuel(1)) do end
  4. end
  5.  
  6. function dig_col()
  7.     while(turtle.detect())
  8.     do
  9.         turtle.dig()
  10.     end
  11.  
  12.     turtle.forward()
  13.  
  14.     while (turtle.detectUp())
  15.     do
  16.         turtle.digUp()
  17.     end
  18.  
  19.     turtle.digDown()
  20. end
  21.  
  22. function dig_layer()
  23.     dig_col()
  24.     turtle.turnLeft()
  25.     dig_col()
  26.     turtle.turnRight()
  27.     turtle.turnRight()
  28.     turtle.forward()
  29.     dig_col()
  30.     turtle.turnRight()
  31.     turtle.turnRight()
  32.     turtle.forward()
  33.     turtle.turnRight()
  34. end
  35.  
  36. refuel()
  37. turtle.up()
  38. torches = turtle.getItemCount(2)
  39. for i=1,torches do
  40.     dig_layer()
  41.     dig_layer()
  42.     dig_layer()
  43.     dig_layer()
  44.     dig_layer()
  45.     turtle.turnRight()
  46.     turtle.forward()
  47.     while(turtle.detect())
  48.     do
  49.         turtle.dig()
  50.     end
  51.     turtle.select(3)
  52.     turtle.place()
  53.     turtle.back()
  54.     turtle.select(2)
  55.     turtle.place()
  56.     turtle.turnLeft()
  57. 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