In World Recipes KubeJS - bbl-team/BBL-Compat GitHub Wiki

Block Interaction Example

clickType (ClickType), targetBlockState (BlockState), heldItem (SizedIngredient), damageHeldItem (boolean), consumeHeldItem (boolean), popItems (boolean), ignoreBlockState (boolean)

ServerEvents.recipes(event => {
  event.recipes.inworldrecipes.block_interaction(
    "right",                        
    "minecraft:dirt",
    "contained:water_drop", 
    false, 
    true, 
    false, 
    true      
})

Additional Options

.outputBlockState("minecraft:furnace[lit=true]") // this block is placed after success 
.results([
    ["3x contained:light_gray_asteroid_dust"],
    ["contained:light_gray_asteroid_dust", 0.25]
]) // Results are a list of items stacks with an optional chance value using ChanceResult, this happens after a success recipe
})