This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jorrow's profile picture

Turtle and redstone in motion

Started by Jorrow, 06 March 2014 - 03:11 PM
Jorrow #1
Posted 06 March 2014 - 04:11 PM
Can someone help me I want to make a turtle do peripheral.call("front","move",2,false,false) then I want the turtle to move right one and run peripheral.call("front","move",2,false,false) again. Do this 16 times then do it going left 16 times then start again.
so the block constantly go right 16 then left 16. I hope this makes sense thanks for any help
CometWolf #2
Posted 06 March 2014 - 05:46 PM
What you'll need is just some simple turtle move commands in a for loop, in another while loop.

Here's all the turtle commands
http://computercraft.info/wiki/Turtle_%28API%29
and here how to make looping code
http://computercraft.info/wiki/Loops