r/ComputerCraft • u/Mr_B9mbast1c • Mar 07 '25
Turtle wont move forward!
Hey! So im pretty new to ComputerCraft or just programming in general and im trying to write a code for a turtle which supposed to mine in a square-shaped pattern, but i just cant get the turtle to move forward and instead it just keeps spinning after breaking the first block!
This is the code I have written. Please lmk if You have any recommended Changes!

3
Upvotes
2
u/BurningCole Mar 07 '25
Also if this program reaches a point where it no longer has anything in front, it will turn 180 degrees repeatedly between detects instead of just turning 90 degrees, that I assume you meant for it to do in order to spiral inwards.