How to Add Deploying and Filling Recipes
Deploying Recipes
A Deploying recipe is what a Deployer does when it strikes an item on a Depot or belt. The signature is event.recipes.create.deploying(output, [target, heldItem]). The held item is consumed per craft unless you mark it as reusable.
`js
ServerEvents.recipes(event => {
event.recipes.create.deploying(
'minecraft:diamond_sword',
['minecraft:iron_sword', 'minecraft:diamond']
)
})
`
Filling Recipes
Filling uses a Spout over an item. Provide the item input and a fluid, and the spout fills the item. Use event.recipes.create.filling(output, [itemInput, Fluid.of('mod:fluid', amount)]).
`js
ServerEvents.recipes(event => {
event.recipes.create.filling(
'minecraft:water_bucket',
['minecraft:bucket', Fluid.of('minecraft:water', 1000)]
)
})
`
Emptying
Emptying is the reverse: a spout drains a fluid out of an item into a tank. The signature is event.recipes.create.emptying([fluidOutput, itemOutput], itemInput). Remember that fluid amounts are in mB, and the Spout only processes one item at a time — if your recipe seems to do nothing, confirm the fluid type matches exactly.