Position

Use the position requirement in a KubeJS recipe

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

.requirePosition(String x, String y, String z)
  • The x, y and z params must be a valid range. Use "" if you want to allow any value for an axis.

Example

ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requirePosition("", "(,128)", "")
  
})