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

Line of code used to mine the block beneath the turtle?

Started by sk8mn, 31 May 2014 - 09:13 PM
sk8mn #1
Posted 31 May 2014 - 11:13 PM
I am working on a programme in a turtle that gets it to dig a quarry like hole, the problem I found was that the command turtle.dig() digs the block infront of it so the turtle would need a 1 block hole all the way down so it would be able to work. As this makes it less automatic as you can't just lead it over to an area and get it to dig. I was going to abandon the program but I thought that there might me a line of code that solves my problem. So I was wondering is there a command like turtle.digDown() . As it is late at night and I only just thought of the idea I haven't had time to check for myself so if someone could tell me what the line is that would be very much appreciated.
MKlegoman357 #2
Posted 31 May 2014 - 11:16 PM
Yes, there is turtle.digDown, as well as turtle.digUp. Next time just check the wiki.
Dog #3
Posted 31 May 2014 - 11:18 PM
Read the Turtle API section of the ComputerCraft Wiki. Your answer is there.

EDIT: ninja'd by MKlegoman357
Edited on 31 May 2014 - 09:18 PM
sk8mn #4
Posted 31 May 2014 - 11:26 PM
Cheers guys, I just completely forgot about the wiki as I came up with the idea while searching through turtle programs
kreezxil #5
Posted 01 June 2014 - 01:23 AM
Also look at the excavate program on the turtle located at /rom/programs/turtle/excavate