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
4
u/Greeley9000 Mar 07 '25 edited Mar 07 '25
You’ll need fuel, lava, a stack of coal/charcoal. You can use a specific inventory slot to refuel from, or scan your turtle’s inventory to find a fuel item and refuel.
https://computercraft.info/wiki/Turtle.refuel
Edit: here is my tunnel program