rungholt

twolayerdirt

Mar 4th, 2021 (edited)
950
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×