Button
Use the button requirement in a KubeJS recipe
.requireButtonPressed("id")
.requireButtonReleased("id")Example
ServerEvents.recipes(event => {
event.recipes.custommachinery.custom_machine("custommachinery:dynamo", 1)
.requireButtonPressed("button")
.produceEnergy(10)
})Last updated