Weather

Use the weather requirement in a KubeJS recipe

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

.requireWeather("weather")

.requireWeatherOnMachine("weather")
  • The weather param must be a string defining the required weather. Valid values : clear, rain, snow, thunder

Example

ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireWeather("rain")
  
})

Last updated