Difference between revisions of "Turtle.refuel"

From ComputerCraft Wiki
Jump to: navigation, search
Line 9: Line 9:
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Fills the turtle.withFuel
+
|desc=Fills the turtle with fuel.
 
|code=[[print]](turtle.refuel())
 
|code=[[print]](turtle.refuel())
 
|output=true if the item is a fuel, false if not
 
|output=true if the item is a fuel, false if not

Revision as of 14:17, 28 July 2012


Grid Redstone.png  Function turtle.refuel
Fills the turtle with fuel.
Syntax turtle.refuel()
Returns boolean whether the item is a fuel.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Fills the turtle with fuel.
Code
print(turtle.refuel())
Output true if the item is a fuel, false if not


--Work in progress, please fix my horrible wiki skills