Dimension

Use the dimension requirement in a KubeJS recipe

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

.dimensionWhitelist(String dimension)
.dimensionWhitelist(String[] dimensions)

.dimensionBlacklist(String dimension)
.dimensionBlacklist(String[] dimensions)
  • The dimension param must be a string defining a valid dimension id. Example : minecraft:overworld

Example

ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .dimensionWhitelist("minecraft:overworld")
  
})