KubeJS Integration
AnvilCraft provides complete KubeJS integration, allowing you to customize AnvilCraft recipes using KubeJS scripts.
Supported Recipe Types
- InWorld Recipe - In-world recipe system
- Item Crush Recipe - Crush items into smaller items
- Item Compress Recipe - Compress multiple items into more advanced items
- Stamping Recipe - Transform items into other items on the stamping platform
- Unpack Recipe - Unpack compressed items into original items
- Block Crush Recipe - Crush blocks into smaller blocks or items
- Block Compress Recipe - Compress multiple blocks into more advanced blocks
- Block Smear Recipe - Smear lower blocks using upper blocks
- Bulging Recipe - Bulge items into other items using fluid in cauldrons
- Squeezing Recipe - Squeeze blocks into other blocks using fluid in cauldrons
- Item Inject Recipe - Inject fluid into items to create new items
- Super Heating Recipe - Transform items using high-temperature fluid
- Time Warp Recipe - Transform items using time power and fluid
- Multiblock Recipe - Multiblock structure recipes
- Mob Transform Recipe - Transform recipes between mob entities
- Jewel Crafting Recipe - Jewel crafting recipes
- Mineral Fountain Recipe - Mineral fountain related recipes
- Boiling Recipe - Boiling process in cauldron environments
- Cooking Recipe - Heating/cooking process in cauldron environments
- Mesh Recipe - Process items with mesh/scaffolding conditions
- Mineral Fountain Chance Recipe - Dimension-based probability block conversion
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
})