Casting KubeJS - bbl-team/BBL-Compat GitHub Wiki

Melting Example

input (Ingredient), resultFluid(FluidStack), meltingTemp (int)

ServerEvents.recipes(event => {
    event.recipes.casting.melting('opolisutilities:mini_charcoal', '10x casting:molten_coal', 500)
})

Solidifier Example

mold (Ingredient*), fluid (FluidStack), output (ItemStack) *If mold is part of the "casting:molds" tag this item is not consumed else if will be

ServerEvents.recipes(event => {
    event.recipes.casting.solidifier('casting:nugget_mold', '10x casting:molten_coal', 'opolisutilities:mini_coal')
})

Fuel Example

fuel (FluidStack*), temp (int), durationPerRecipe (int) *Amount in the fluid stack is the amount used per melted item

ServerEvents.recipes(event => {
    event.recipes.casting.fuel("8x oritech:still_biofuel", 1000, 400)
})

Coolant Example

coolant (FluidStack*), durationPerRecipe (int) *Amount in the fluid stack is the amount used per solidified item

ServerEvents.recipes(event => {
    event.recipes.casting.coolant("20x justdirethings:polymorphic_fluid_source", 100)
})

Mixing Example

outout (FluidStack), inputs (List)

ServerEvents.recipes(event => {
    event.recipes.casting.mixing('1000x oritech:still_oil', ['1000x oritech:still_heavy_oil', '1000x oritech:still_biofuel'])
})
⚠️ **GitHub.com Fallback** ⚠️