r/ComputerCraft • • Nov 20 '13

Help with a program

Would it be easy to write a program that has the turtle constantly refilling? If so copy/paste it please :)

0 Upvotes

1 comment sorted by

1

u/[deleted] Nov 21 '13

Do you mean refueling? If so, then you must know absolutely nothing on ComputerCraft. Nethertheless, I've written some code.

if turtle.getFuelLevel() < 10 then
  shell.run("refuel all")
end