# Fuel

**Use one of these methods to add a** [**Fuel Requirement**](https://github.com/Frinn38/Custom-Machinery/wiki/Fuel-Requirement) **to the recipe.**

```javascript
.requireFuel()
.requireFuel(amount)
```

* The amount param must be a positive integer that define the amount of fuel burned each tick of the recipe processing.\
  Default to 1 when not specified.

### Example

```javascript
ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireFuel()
  
})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://frinn.gitbook.io/custom-machinery-1.21/mod-integrations/kubejs/recipes/fuel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
