Posted 03 July 2014 - 01:18 PM
Does anyone have a good idea of how i can improve this program so it will detect gravel and mine it out?
Btw This is my first program and i am only 12 so please dont do something super complicated.
:)/>
Btw This is my first program and i am only 12 so please dont do something super complicated.
:)/>
- function turn180()
turtle.turnLeft()
turtle.turnLeft()
end
function up2()
turtle.up()
turtle.up()
end
function forward2()
turtle.forward()
turtle.forward()
end
function Dig3x3()
turtle.dig()
turtle.forward()
turtle.turnLeft()
turtle.dig()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digDown()
turtle.down()
turtle.dig()
turtle.digDown()
turtle.forward()
turtle.digDown()
turn180()
forward2()
turtle.turnLeft()
turtle.digDown()
up2()
end
while turtle.getFuelLevel() ~= 0 and turtle.getItemCount(2) ~= 0 and turtle.getItemCount(16) ~= 1 do
Dig3x3()
Dig3x3()
Dig3x3()
Dig3x3()
Dig3x3()
turn180()
turtle.forward()
turtle.turnLeft()
turn180()
turtle.forward()
turn180()
turtle.select(2)
turtle.place(2)
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end