Difference between revisions of "Turtle.refuel"

From ComputerCraft Wiki
Jump to: navigation, search
(Added a "added by" to better support mod fuels)
Line 16: Line 16:
  
 
== Fuel Values ==
 
== Fuel Values ==
Fuel values with IC2 items.
+
Fuel values for different items.
  
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
! Item
 
! Item
 
! Movement gained
 
! Movement gained
 +
! Added by
 
|-
 
|-
 
| Biofuel Can
 
| Biofuel Can
 
| 624
 
| 624
 +
| IndustrialCraft
 
|-  
 
|-  
 
| Scrap
 
| Scrap
 
| 21
 
| 21
 +
| IndustrialCraft
 +
|-
 +
| Coalfuel Can
 +
| 1824
 +
| IndustrialCraft
 +
|-
 +
| Peat
 +
| 96
 +
| Forestry
 
|-
 
|-
 
| Wooden Tools
 
| Wooden Tools
 
| 12
 
| 12
 +
| Vanilla
 
|-
 
|-
 
| Lava
 
| Lava
 
| 1200
 
| 1200
 +
| Vanilla
 
|-
 
|-
 
| Blaze Rod
 
| Blaze Rod
 
| 144
 
| 144
 +
| Vanilla
 
|-
 
|-
 
| Wood Blocks
 
| Wood Blocks
 
| 18
 
| 18
 +
| Vanilla
 
|-
 
|-
 
| Sticks
 
| Sticks
 
| 6
 
| 6
 +
| Vanilla
 
|-  
 
|-  
 
| Sugar Cane
 
| Sugar Cane
 
| 3
 
| 3
|-
+
| Vanilla
| Coalfuel Can
+
| 1824
+
 
|-
 
|-
 
| Coal
 
| Coal
 
| 96
 
| 96
 +
| Vanilla
 
|-
 
|-
 
| Mushroom
 
| Mushroom
 
| 18
 
| 18
 +
| Vanilla
 
|}
 
|}

Revision as of 14:57, 17 August 2012


Grid Redstone.png  Function turtle.refuel
Fills the turtle with fuel.
Syntax turtle.refuel()
Returns boolean true if fuel, else false.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
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 for different items.

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