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
1
5 replies to this topic
#1
Posted 02 May 2015 - 08:42 PM
I run my program and I get end of file expected Plz Help!
#2
Posted 02 May 2015 - 08:57 PM
if you re-indent your code, you may realise that you have an extra end
#3
Posted 02 May 2015 - 09:38 PM
Where?
#5
Posted 02 May 2015 - 10:07 PM
Haha! and thanks!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users