1 posts
Posted 02 February 2013 - 02:48 PM
Im trying to make a timer so that my turtle will break a block in front of him after a few seconds. example, if i place a piece of gravel in front of it, there will be a few seconds for a delay, then it'll break it.
1688 posts
Location
'MURICA
Posted 02 February 2013 - 02:56 PM
That's relatively simple.
repeat until turtle.detect()
turtle.dig()
1548 posts
Location
That dark shadow under your bed...
Posted 03 February 2013 - 02:15 AM
add a sleep in between those for the delay
2005 posts
Posted 03 February 2013 - 09:18 PM
Between the repeat and the until, to be exact.
repeat sleep(3) until turtle.detect()
turtle.dig()