Posted 06 August 2013 - 10:52 PM
Hello I Need Help Making a Rabbit Hole Miner And Wanted To Know If This Little Bit Of Code Will Work? I Cant Test It, Unfortunately.
--[[ Testing ]]--
turtleReady = false
-----------------------------
function shouldRefuel()
if turtle.getFuelLevel() < 64 then
print("Refueling, Please Wait a Minute...")
sleep(2)
turtle.refuel( 10 )
print("Turtle Refueled!")
sleep(1)
turtleReady = true
end
function checkReady()
if turtle.down() == false then
turtleReady = false
end
function goDown()
shouldRefuel()
print("Going Down!")
while turtleReady = true do
turtle.digDown()
turtle.down()
end