Posted 05 October 2013 - 03:13 PM
Deleted. Can't bear the noobiness that is being portrayed by my self in this post.
Edited on 20 May 2014 - 02:02 PM
function check() --first line
for i = 16, 3, -1 do turtle.compareTo(1) if = true then do turtle.dropUp() --saplings
for o = 16, 5, -1 do turtle.compareTo(3) if == true do turtle.turnLeft() turtle.drop() --bonemeal
for u = 14, 1, -1 do turtle.compareTo(15) if == true do turtle.turnRight() turtle.drop() --wood
end
end
end
end
turtle.compareTo(1) if = true then do turtle.dropUp()
if turtle.compareTo(1) then
turtle.dropUp()
end
if <condition> then
and for comparing to things you need '=='
if 1+1 == 2 then
^ would be a valid if statement comparing 1+1 to 2 if there the same(comparison is true) continue code
if turtle.compareTo(1) then
is turtle.compareTo(1) is a function which returns a boolean(either true or false) so if it returns true its basiclly like saying
if true then
and if the comparision is true it will continue code