Posted 02 May 2015 - 09:42 PM
I run my program and I get end of file expected Plz Help! :(/>
function fuel()
for i = 3, 16 do
turtle.select(i)
if turtle.refuel(2) == true then
return true
end
end
error()
end
function sapSlot()
turtle.select(2)
local data = turtle.getItemDetail(2)
if data.name == "minecraft:sapling" and data.damage == 2 then
icnt = turtle.getItemCount(2)
if icnt ~= 1 then
return true
else
print("Please Supply More Saplings")
while turtle.getItemCount(2) < 3 do
sleep(2)
end
end
else
error("No Saplings")
end
end
chopCycle()
if sapSlot() == true then
turtle.select(2)
turtle.place()
turtle.up()
while turtle.detect() == false do
sleep(5)
end
turtle.down()
fuel()
shell.run("log2")
end
end