Time

Use the time requirement in a KubeJS recipe

Use this method to add a Time Requirement to the recipe.

.requireTime("time")
  • The time param must be a string that represents a time Range.

  • Look at the time requirement wiki page to know what to put here.

Example

ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireTime("(,12000)")
  
})