Posted 01 April 2012 - 06:32 PM
Ok so, I'm a complete noob with all this, so this probably a really stupid question. But how would I make a turtle move a certain number of blocks forward rather than traveling forever?
for i= 1, Blocks, 1 do
turtle.forward()
end
function forwardNum(blocks)
for i= 1, blocks do
turtle.forward()
end
end
forwardNum(3)
turtle.turnLeft()
forwardNum(3)
Thanks so much :3
But how do I put it into a command? Say I want it to move 3 blocks, turn left, then move 3 blocks more?
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.forward()
Thanks so much :3
But how do I put it into a command? Say I want it to move 3 blocks, turn left, then move 3 blocks more?turtle.forward() turtle.forward() turtle.forward() turtle.turnLeft() turtle.forward() turtle.forward() turtle.forward()