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
andz
params must be a valid range. Use""
if you want to allow any value for an axis.
Example
onEvent('recipes', event => {
event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
.requirePosition("", "(,128)", "")
})
Last updated