Posted 26 August 2012 - 10:49 PM
I'm sure this is a very simple fix. So far, I've been unable to find a way to make my turtle turn around once it hits bedrock. I figure that I could write something like this -
x = 1
while x do
.turtle.digDown()
.turtle.down()
….if turtle.down() is false then
……for i=1, x do
……..turtle.up()
end
As I'm new to lua, my syntax is clearly sub par.
Thanks for reading.
x = 1
while x do
.turtle.digDown()
.turtle.down()
….if turtle.down() is false then
……for i=1, x do
……..turtle.up()
end
As I'm new to lua, my syntax is clearly sub par.
Thanks for reading.