Skip to content

KubeJS Integration

AnvilCraft provides complete KubeJS integration, allowing you to customize AnvilCraft recipes using KubeJS scripts.

Supported Recipe Types

Basic Usage

To use AnvilCraft's KubeJS integration, first import the relevant classes in your KubeJS script:

js
// In your KubeJS script
ServerEvents.recipes(event => {
    // Your recipe code
})

All AnvilCraft recipes follow the KubeJS standard recipe format:

js
event.custom({
    type: "anvilcraft:recipe_type",
    // Recipe parameters
})

Released under the CC-BY-NC-SA 4.0 License.