im working on making a basic house building (10x10) program with while loops and if and elseifs so now my question is : on my program i have my functions and ifs and loops so far setup in this manner
function Fuel()
if turtle.getFuelLevel <= 1 then
turtle.select(1)
turtle.refuel(1)
end
end
//other functions
i = 1
while i <= 10 do
if turtle.getItemCount(2) >= 20 then
i = 1
while i <= 10 do
Fuel()
Line()
i = i + 1
elseif turtle.getItemCount(2) <= 20
print("Need 20 in slot 2")
end
end
end
and it seems after it finishes it stops and wont loop it over again please help me im a lua noob as you probably can tell mine is much bigger then this but i dont have access to the file to copy and paste if needed to i can finish the rest of it this is just the gist of it











