This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
gRntaus's profile picture

Turtle Get Fuel

Started by gRntaus, 30 May 2013 - 05:07 PM
gRntaus #1
Posted 30 May 2013 - 07:07 PM
Could someone please confirm does the fuel level translate into movements left when its returned or will I have to do the math on the wiki page to ensure I can run a full cycle before running out of fuel?

Ie: does get fuel do something like return 1. Which means it has 1 of x fuel source left? Or something 20 as in it can move 20 more blocks?
Lyqyd #2
Posted 31 May 2013 - 10:59 AM
Split into new topic.

One unit of fuel is one movement. The wiki should have laid that out explicitly.
angellus #3
Posted 31 May 2013 - 01:43 PM
What Lyqyd said. 1 unit of fuel in a turtle = 1 block of movement. Only movement consumes fuel. Attacking, dig, and everything else does not. Coal gives ~90 units and Lava gives ~1000. Exact numbers can be found on the wiki.

EDIT: And turtle.getFuelLevel() returns the units of fuel the turtle has left.