Advertisement
rungholt

twolayerdirt

Mar 4th, 2021 (edited)
1,130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1.     local function checkFuel()
  2.         while turtle.getFuelLevel() <= 200 do
  3.             turtle.select(16)
  4.             turtle.refuel(16)
  5.             turtle.select(1)
  6.         end
  7.     end
  8.  
  9.     local function tDigDown()
  10.         turtle.digDown()
  11.         turtle.down()
  12.         turtle.digDown()
  13.     end
  14.  
  15.     local function tPlace()
  16.         turtle.select(1)
  17.         turtle.placeDown()
  18.         turtle.up()
  19.         turtle.placeDown()
  20.     end
  21.  
  22.     while turtle.detect() == false do
  23.         local success, data = turtle.inspectDown()
  24.             if success then
  25.                 if data.name ~= "minecraft:grass_block" then
  26.                     checkFuel()
  27.                     tDigDown()
  28.                     tPlace()
  29.                 end
  30.             end
  31.                 turtle.forward()
  32.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement