> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.21/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frinn.gitbook.io/custom-machinery-1.21/mod-integrations/kubejs/recipes/fuel.md).

# Fuel

Use the fuel requirement in a KubeJS recipe

**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()
  
})
```
