Posted 06 August 2015 - 03:42 AM
Hi! I am very very new to LUA! and Computer Craft. I Tried to make a turtle That Go's turns and comes back. But it wont Move. its all fueled up too.
Heres the Code i wrote.
function Dig()
turtle.dig()
end
function Move()
for i = 1, 30 do
if not turtle.forward() then
Dig()
end
end
function turn()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
end
Heres the Code i wrote.
function Dig()
turtle.dig()
end
function Move()
for i = 1, 30 do
if not turtle.forward() then
Dig()
end
end
function turn()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
end