Posted 29 July 2013 - 11:25 PM
another question :rolleyes:/>
title: How do I do this?
look for the comments in the code:
Thanks!
title: How do I do this?
look for the comments in the code:
function select()
turtle.getFuelLevel(x)
if x < 50 then
turtle.select(16)
turtle.refuel(1)
turtle.select(1)
endturtle.getItemCount(1)
if 0 then turtle.select(2)
end
end
term.clear()
term.setCursorPos(1,1)
print("Enter Height:")
local h = read()
term.clear()
term.setCursorPos(1,1)
print("Enter Length:")
local l = read()
term.clear()
term.setCursorPos(1,1)
print("Enter Width:")
local w = read() --take number from here
term.clear()
term.setCursorPos(1,1)
end
turtle.select(1)
turtle.turnLeft()
for w = 0, w do --and add it into this
select()
turtle.back()
turtle.place()
end
also, how does the function look, did i do the get fuel (x) correctly?Thanks!
Edited by