Posted 27 July 2012 - 07:03 PM
This program fills in the hole left by buildcraft quarries with whatever resource you load the turtle's inventory with (I recommend dirt obviously). Supports mid-run reloading, only puts a 1 block cover of dirt.
local x = 1
turtle.forward() -- Move into hole
while(true)
do
while (turtle.detectDown() == false)
do
if(turtle.getItemCount(x)==0)
then
x=x+1
if(x==10) then
x = 1
end
turtle.select(x)
end
turtle.placeDown()
turtle.forward()
if(turtle.detect()) and (turtle.detectDown() == false)
then
turtle.turnLeft()
end
end
while (turtle.detectDown() == true) do
turtle.back()
turtle.turnLeft()
turtle.forward()
end
-- turtle.back()
-- turtle.turnLeft()
end