Skip to content

KubeJS Integration

Luc_Creeper74 edited this page May 10, 2026 · 9 revisions

⚠️ OUTDATED AND WIP ⚠️

Create Metallurgy offer an integration with KubeJS natively which is very useful for packdevs.

A minimum knowledge of KubeJS and JavaScript is needed, please refer to the KubeJS Wiki Page

Custom Recipes

In the Server scripts Javascript files!

Compatible with Create Heat JS.

Alloying

    //Alloying -> Coal Block into 10mb Molten Zinc + Dead Bush in 40 ticks (Super Heated condition).
    event.recipes.createmetallurgy.alloying([Fluid.of("createmetallurgy:molten_zinc", 10), 'dead_bush'], 'coal_block', 40, 'superheated')

Grinding

    //Grinding -> Dead Bush into Coal Block. No heat condition!
    event.recipes.createmetallurgy.grinding('dead_bush', 'coal_block')

Melting

    //Melting -> Diamond into 200mb Molten Gold in 90 ticks with Heated condition.
    event.recipes.createmetallurgy.melting(Fluid.of('createmetallurgy:molten_gold', 200), 'diamond', 90, 'heated')

Casting

    //Casting in Table -> Diamond from 200mb Molten Gold and Stick as Mold in 90 ticks, mold is consumed.
    event.recipes.createmetallurgy.casting_in_table('diamond', [Fluid.of('createmetallurgy:molten_gold', 200), 'stick'], 90, true)
    
    //Casting in Basin -> Diamond Block from 900mb Molten Gold without mold in 120 ticks, mold not consumed.
    event.recipes.createmetallurgy.casting_in_basin('diamond_block', Fluid.of('createmetallurgy:molten_gold', 900), 120)

Clone this wiki locally