Light

Use the light requirement in a KubeJS recipe

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

.requireSkyLight(amount)
.requireSkyLight("range")

.requireBlockLight(amount)
.requireBlockLight("range")
  • The amount param must be a positive integer between 0 and 15.

  • The range param must be a string defining a valid Range.

Examples

ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireSkyLight(15)
  
  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireBlockLight("[7,)")
  
})