Posted 22 June 2015 - 08:04 PM
Hi i have a Problem with my MiningTurtle.
I Want to make a easy Programm to Mining a 3x10x4 tunnel.
but after he Breake the first String, it say: Zephir2:20: attempt to call nil
can anyone help me
This is my program:
for Start=1,2 do
turtle.dig()
turtle.forward()
turtle.turnRight()
for Mining=4,9 do
turtle.dig()
turtle.forward()
end
turtle.digUp()
turtle.turnLeft()
turtle.turnLeft()
turtle.up()
for Mining2=12,9 do
turtle.dig()
turtle.forward()
end
turtle.digUp()
turtle.turnRight()
turtle.turnRight()
turtle.Up()
for Mining3=20,9 do
turtle.dig()
turtle.forward()
end
turtle.turnLeft()
turtle.dig()
turtle.turnLeft()
for Mining4=27,9 do
turtle.dig()
turtle.forward()
end
turtle.digDown()
turtle.turnRight()
turtle.turnRight()
turtle.Down()
for Mining5=35,9 do
turtle.dig()
turtle.forward()
end
turtle.digDown()
turtle.turnLeft()
turtle.turnLeft()
turtle.Down()
for Mining6=43,9 do
turtle.dig()
turtle.forward()
end
turtle.turnRight()
end
I Want to make a easy Programm to Mining a 3x10x4 tunnel.
but after he Breake the first String, it say: Zephir2:20: attempt to call nil
can anyone help me
This is my program:
for Start=1,2 do
turtle.dig()
turtle.forward()
turtle.turnRight()
for Mining=4,9 do
turtle.dig()
turtle.forward()
end
turtle.digUp()
turtle.turnLeft()
turtle.turnLeft()
turtle.up()
for Mining2=12,9 do
turtle.dig()
turtle.forward()
end
turtle.digUp()
turtle.turnRight()
turtle.turnRight()
turtle.Up()
for Mining3=20,9 do
turtle.dig()
turtle.forward()
end
turtle.turnLeft()
turtle.dig()
turtle.turnLeft()
for Mining4=27,9 do
turtle.dig()
turtle.forward()
end
turtle.digDown()
turtle.turnRight()
turtle.turnRight()
turtle.Down()
for Mining5=35,9 do
turtle.dig()
turtle.forward()
end
turtle.digDown()
turtle.turnLeft()
turtle.turnLeft()
turtle.Down()
for Mining6=43,9 do
turtle.dig()
turtle.forward()
end
turtle.turnRight()
end