r/ComputerCraft • • Apr 05 '17

Can't figure out simple program

I need a turtle to dig a 150 high, 1 wide and 152 long area and i can't get the logic into my head, since I'm limited in available time I'd love some help, thanks in advance.

1 Upvotes

3 comments sorted by

1

u/eniallator Apr 05 '17 edited Apr 05 '17

try using this program that i made to mine it out (i haven't tested it but all i did was modify my remote control plugin to make it so im pretty sure it should. btw the way u use it is by putting arguments when calling the program like so:

cubeMiner <blocks in front> <blocks up> <blocks to the left>

1

u/Arno989 Apr 05 '17

Damn this looks complicated, i'll look at it tomorrow after work, thanks a lot anyway. Also where should the turtle start then, beliw or above ?

1

u/eniallator Apr 05 '17 edited Apr 06 '17

at the bottom next to the cuboid that u want to mine out. The reason that it is so complex is that i have tried to make use the least amount of fuel as possible (there is a way to do it even more so but its a little bit overkill). The way it works is it will dig out 3 high layers at a time and when it reaches the last layer, if there is a 1 or 2 high section left, it will stay on the "floor" of that current layer, however if it's a 3 high section, it will just continue with the normal way. If you like you can try it out to see what im talking about :P