SHARE
TWEET

Untitled

a guest Jan 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function minecube()
  2.  for i = 1 , 15 do
  3.   turtle.digDown()
  4.   turtle.forward()
  5.  end
  6. end  
  7. function turnright()
  8.   turtle.turnRight()
  9.   turtle.digDown()
  10.   turtle.forward()
  11.   turtle.turnRight()
  12.   end
  13. function turnleft()
  14.   turtle.turnLeft()
  15.   turtle.digDown()
  16.   turtle.forward()
  17.   turtle.turnLeft()
  18.   end
  19.  function layer()--mines 1 layer of land 32*32
  20.   for i =  1 , 8 do
  21.    minecube()--Mines straigt 31 ends on block 32
  22.    turnright()--resets so mine cube can go
  23.    minecube()
  24.    turnleft()
  25.    minecube()
  26.    turnright()
  27.  end
  28.  function downdig()
  29.   for i = 1 , 10 do
  30.    turtle.down()
  31.    layer()
  32.    end
  33.  end
  34.  function dropoff10()
  35.   for i = 1 , x do
  36.    turtle.up()
  37.   end
  38.    turtle.turnRight()
  39.    turtle.turnRight()
  40.    turtle.drop()
  41.    turtle.select(2)
  42.    turtle.drop()
  43.    turtle.select(3)
  44.    turtle.drop()
  45.    turtle.select(4)
  46.    turtle.drop()
  47.    turtle.select(5)
  48.    turtle.drop()
  49.    turtle.select(6)
  50.    turtle.drop()
  51.    turtle.select(7)
  52.    turtle.drop()
  53.    turtle.select(8)
  54.    turtle.drop()
  55.    turtle.select(9)
  56.    turtle.drop()
  57.    turtle.select(10)
  58.    turtle.drop()
  59.    turtle.select(11)
  60.    turtle.drop()
  61.    turtle.select(12)
  62.    turtle.drop()
  63.    turtle.select(13)
  64.    turtle.drop()
  65.    turtle.select(14)
  66.    turtle.drop()
  67.    turtle.select(15)
  68.    turtle.drop()
  69.    turtle.select(16)
  70.    turtle.refuel()
  71.    turtle.select(1)
  72.    turtle.turnRight()
  73.    turtle.turnRight()
  74.  end  
  75. function minedown()
  76.   downdig()
  77.   dropoff10()
  78. end
  79. function gobottom()
  80.  for i = 1 , x do
  81.    turtle.down()
  82.     end
  83.   end
  84. end
  85. local x = 10
  86. minedown()
  87. gobottom()
  88. print(x)
  89. x = x + 10
  90. print(x)
  91. minedown()
  92. gobottom()    
  93. x = x + 10
  94. print(x)
  95. minedown()
  96. gobottom()
  97. x = x + 10
  98. minedown()
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