Posted 06 January 2013 - 06:13 PM
I've been using my turtle to make a mineshaft and put up a torch, and then id come in after it and get all the ore. it has been working well, until I hit gravel. then the shit hits the fan. Ive been trying for days and I cant figure out a way to get completely around it. I have made it so it dosent just completely mess up, but it will always ruin the distance I want it to go. here is the part of the code that the gravel is messing with.
–[[fill slot 2 with stone. slot 3 with gravel]]–
function block()
for a=1,8 do
turtle.select(2)
turtle.placeDown()
turtle.dig()
turtle.up()
turtle.dig()
turtle.down()
turtle.select(3)
if turtle.compare() then
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
else
turtle.forward()
end
end
end
I know it is not the most elegant of things, but it was all I could do to make it work. I have also found a it has a problem with lava, I don't know what the problem with it is exactly , but it messes it up. I have it going 8 because I later put some torches up and any farther and mobs appear. I think the problem with it is that after it compares, it starts all over again, instead of then moving forward. Im still a computercraft n00b, so i cant figure out any way around this. And thats hopefully where you come in! so, do you know how to fix it?
–[[fill slot 2 with stone. slot 3 with gravel]]–
function block()
for a=1,8 do
turtle.select(2)
turtle.placeDown()
turtle.dig()
turtle.up()
turtle.dig()
turtle.down()
turtle.select(3)
if turtle.compare() then
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
turtle.dig()
else
turtle.forward()
end
end
end
I know it is not the most elegant of things, but it was all I could do to make it work. I have also found a it has a problem with lava, I don't know what the problem with it is exactly , but it messes it up. I have it going 8 because I later put some torches up and any farther and mobs appear. I think the problem with it is that after it compares, it starts all over again, instead of then moving forward. Im still a computercraft n00b, so i cant figure out any way around this. And thats hopefully where you come in! so, do you know how to fix it?