More fluid apis

This commit is contained in:
2026-10-28 13:04:24 -03:00
parent 1539cf6933
commit 3cc33ea10c
7 changed files with 36 additions and 4 deletions
+4 -1
View File
@@ -71,7 +71,10 @@ export interface ClientContext {
solid(id: Id): boolean;
};
// every fluid, named and colored by its rules, see docs/modding/resources/fluids.md
fluids: FluidApi;
fluids: FluidApi & {
// the mod that registered it, like ctx.items.mod
mod(id: Id): string;
};
// the mods' loot table files (see docs/modding/resources/loot_tables.md), to show what they give. tables server
// scripts make with ctx.loot.register_table aren't here
loot: {