r/ComputerCraft • u/MeApellidoFranco • Jan 05 '25
need help about my code -- new in coding
(im new in programming, dont flame please)
pastebin: https://pastebin.com/42b4nHf6
so i tried to make a program that mines based on width height and length in a turtle.
It usually works right, but when conditions like gravel falling appear, the turtle bugs and starts doing an extra block in length, becoming like a stairs pattern, when I actuallly wanna make a cube.
Begging for help thank you
5
Upvotes
3
u/Sorry_Spinach7266 Jan 05 '25
You can check each time you mine if a block is still there and redo the process until there is nothing.
1
u/NortWind Jan 06 '25
You can add a delay to allow the block to fall before you check again and mine if needed. I use os.sleep(cSleep) with the value of cSleep being 1. You can see my code here.