turtle.getFuelLimit

From ComputerCraft
Jump to navigation Jump to search

turtle.getFuelLimit
Function
Syntax
turtle.getFuelLimit()
Returns number fuel
API turtle
Source CC:Tweaked

Returns a number representing the maximum amount of fuel (block moves) the turtle can possibly hold.

Error creating thumbnail: Unable to save thumbnail to destination
ExampleGet fuel limit
Get the maximum amount of fuel the current turtle can have
Code
print("I can hold ", turtle.getFuelLimit(), "fuel!")
Output
I can hold 100000 fuel!