KubeJS Metalworks adds simple KubeJS scripting helpers for Productive Metalworks on NeoForge 1.21.1.
Instead of writing full custom recipe JSON, you can create Productive Metalworks recipes with short KubeJS commands.
Melting
PMW.melt(event, 'minecraft:stone', 'productivemetalworks:molten_diamond', 10)
Turns 1 stone into 10 mB of molten diamond.
With custom duration:
PMW.melt(event, 'minecraft:cobblestone', 'productivemetalworks:molten_diamond', 10, 0, 0, 1200)
Casting
PMW.itemCast(event, 'minecraft:blaze_rod', 'productivemetalworks:rod_cast', 'productivemetalworks:molten_blaze', 400)
Turns 400 mB molten blaze into a blaze rod using a rod cast.
PMW.blockCast(event, 'minecraft:diamond_block', 'minecraft:stone', 'productivemetalworks:molten_diamond', 900)
Turns 900 mB molten diamond into a diamond block using stone as the block cast.
Alloying
PMW.alloy(event, 'productivemetalworks:molten_brass', 4, [
{ fluid: '#c:molten_copper', amount: 3 },
{ fluid: '#c:molten_zinc', amount: 1 }
])
Combines molten copper and molten zinc into molten brass.
Removing Recipes
PMW.removeId(event, 'productivemetalworks:casting/blaze_rod')
PMW.removeType(event, 'productivemetalworks:item_melting')
Custom Liquid Fuel
PMW.fuel('minecraft:water', 1500, 1.0, 0.2)
Adds water as a foundry fuel with custom temperature, speed, and consumption.
KubeJS Metalworks is made for modpack creators who want to customize Productive Metalworks through KubeJS without writing large recipe JSON files manually.
MORE EXAMPLES HERE: Metalworkshttps://github.com/senuko228/KubeJS-Metalworks

