SHARE
TWEET

wall

a guest Dec 15th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Prm = dofile("Premade")
  2.  
  3. function step(n)
  4.   for i = 1, n do
  5.     turtle.dig()
  6.     turtle.forward()
  7.     turtle.digDown()
  8.     Prm.nextSel(1)
  9.     turtle.placeDown()
  10.   end
  11. end
  12.  
  13. function layer(l)
  14.   turtle.digDown()
  15.   turtle.placeDown()
  16.   for i = 1, 3 do
  17.     Prm.fuelCheck()
  18.     step(l - 1)
  19.     turtle.turnRight()
  20.   end
  21.   Prm.fuelCheck()
  22.   step(l - 2)
  23.   turtle.forward()
  24.   turtle.turnRight()
  25. end
  26.  
  27.  
  28. local w, h = ...
  29.  
  30. w = tonumber(w)
  31. h = tonumber(h)
  32.  
  33. for i = 1, h do
  34.   turtle.digUp()
  35.   turtle.up()
  36.   layer(w)
  37. 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