turtle.refuel

From ComputerCraft Wiki
Revision as of 14:18, 28 July 2012 by 37.148.147.161 (Talk)

Jump to: navigation, search


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


Fuel values with IC2 items, if somebody could pretty this up.

bioFuelCan yields: 624 Movement. scrap yields: 21 Movement. woodTools yields: 12 Movement. lava yields: 1200 Movement. blazeRod yields: 144 Movement. woodBlocks yields: 18 Movement. stick yields: 6 Movement. sugarCane yields: 3 Movement. coalFuelCan yields: 1824 Movement. coal yields: 96 Movement. mushroom yields: 18 Movement.