# Biome

**Use one of these methods to add a** [**Biome Requirement**](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/biome) **to the recipe.**

```javascript
.biomeWhitelist(Biome biome)
.biomeWhitelist(Biome[] biomes)

.biomeBlacklist(Biome biome)
.biomeBlacklist(Biomes[] biomes)
```

* The `biome` param must be a biome id. \
  Example : `minecraft:ocean`

### Example

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

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .biomeWhitelist("minecraft:forest")
  
})
```
