--Sample tree program using my tree2 API
os.loadAPI("tree2")
local tArgs = {...}
count = tonumber(tArgs[1]) --0<count<65
for i = 1,count do
replant()
dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.forward()
clearInv()
restock()
turtle.turnLeft()
turtle.turnLeft()
end
Comments