turtle.getFuelLimit
Returns a number representing the maximum amount of fuel (block moves) the turtle can possibly hold.
  | 
  |||
| 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!
 | 
    ||
Functions  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua | 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked | 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| turtle.getFuelLimit Function  | |
|---|---|
| 
Syntax turtle.getFuelLimit()  | |
| Returns | number fuel | 
| API | turtle | 
| Source | CC:Tweaked | 
    This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.