Fluid handler

This commit is contained in:
2026-10-31 16:54:24 -03:00
parent 23d02c5229
commit 407ed77385
20 changed files with 602 additions and 127 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
// bworld:juiceable, its own juice, and mods can add more like any recipe, as files or from their shared scripts.
// whatever makes juice reads them, like the juicer. with create installed, each is also a create:compacting recipe,
// so its press can make juice in a basin
import type { FluidVariant, SharedContext, TagApi } from "bworld/shared";
import type { FluidStack, SharedContext, TagApi } from "bworld/shared";
import type { JuiceableParams } from "./shared.ts";
export const JUICING = "bworld:juicing";
@@ -14,7 +14,7 @@ export interface JuicingRecipe {
// the items it presses
input: string[];
// what one of them makes
juice: { fluid: FluidVariant; amount: number };
juice: FluidStack;
}
// a recipe for every juiceable item, pressing one into the juice named after it, as much as its component says