Any help with this would be appreciated. Apparently there is an error with comparing strings and numbers and receiving strings in the " while r<a do" line but I'm not sure how to fix it. I am inexperienced in general with Lua.
Thanks so much guys.
Love the FTB community
All help appreciated!!!
Code:
term.clear()
term.setCursorPos(1,1)
print("Length (1st and 3rd side)")
x = read()
print("Width (2nd and 4th side)")
y = read()
turtle.select(1)
function breakPlaceMove()
if turtle.detectDown() then
turtle.digDown()
turtle.placeDown()
turtle.forward()
end
end
function runTime(a)
r = 1
while r<a do
breakPlaceMove()
r = r + 1
end
end
runTime(x)
turtle.turnLeft()
runTime(y)
turtle.turnLeft()
runTime(x)
turtle.turnLeft()
runTime(y)
Thanks so much guys.
Love the FTB community
All help appreciated!!!