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

Turtle Help

Started by ilovemehandgun, 19 May 2012 - 04:24 AM
ilovemehandgun #1
Posted 19 May 2012 - 06:24 AM
How can I make a turtle repeat a digging pattern until it reaches bedrock?
Luanub #2
Posted 19 May 2012 - 09:37 AM
Here's a simple way to do it. Play with it and modify it to fit you needs.



local d = 0
repeat
   turtle.digDown()
  d = d + 1
until not turtle.down()
for x=1, d do
   turtle.up()
end