Biome

Use the biome requirement in a KubeJS recipe

Use one of these methods to add a Biome Requirement to the recipe.

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

.biomeBlacklist(Biome biome)
.biomeBlacklist(Biomes[] biomes)
  • The biome param must be a biome id. Example : minecraft:ocean

Example

ServerEvents.recipes(event => {

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