-
Notifications
You must be signed in to change notification settings - Fork 13
KubeJS Integration
Luc_Creeper74 edited this page Oct 28, 2024
·
6 revisions
Create Metallurgy natively has KubeJS integration useful for packdevs. For the syntax of Outputs/Inputs, please refer to the KubeJS Wiki Page
In the Server scripts Javascript files!
Heat Conditions / Processing Duration are optional. Custom heat condition work with those from Create Heat JS or from others Create mod addons.
//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 -> Dead Bush into Coal Block. No heat condition! event.recipes.createmetallurgy.grinding('dead_bush', 'coal_block')
//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 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)