Difference between revisions of "Turtle.refuel"

From ComputerCraft Wiki
Jump to: navigation, search
Line 11: Line 11:
 
|desc=Fills the turtle with fuel
 
|desc=Fills the turtle with fuel
 
|code=turtle.refuel()
 
|code=turtle.refuel()
|output=true if the item is a fuel, false if not
+
|output=true if the item is a fuel, false if not. Fuel is used in the process.
 
}}
 
}}
 
}}
 
}}

Revision as of 14:25, 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
turtle.refuel()
Output true if the item is a fuel, false if not. Fuel is used in the process.


Fuel Values

Fuel values with IC2 items.

Item Movement gained
Biofuel Can 624
Scrap 21
Wooden Tools 12
Lava 1200
Blaze Rod 144
Wood Blocks 18
Sticks 6
Sugar Cane 3
Coalfuel Can 1824
Coal 96
Mushroom 18