Difference between revisions of "Turtle.refuel"
From ComputerCraft Wiki
| Line 4: | Line 4: | ||
|args= | |args= | ||
|api=turtle | |api=turtle | ||
| − | |returns=[[boolean]] | + | |returns=[[boolean]] true if fuel, else false. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Fills the turtle with fuel. | |desc=Fills the turtle with fuel. | ||
| 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 | + | |output=Tries to consume the item, returns true if it is a fuel and false if not. |
}} | }} | ||
}} | }} | ||
Revision as of 14:27, 28 July 2012
| Fills the turtle with fuel. | |
| Syntax | turtle.refuel() |
| Returns | boolean true if fuel, else false. |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Fills the turtle with fuel | |
| Code |
turtle.refuel() |
| Output | Tries to consume the item, returns true if it is a fuel and false if not. |
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 |