Fluid data

This commit is contained in:
2026-10-25 14:24:16 -03:00
parent 17d83acfc8
commit fc27771a92
12 changed files with 387 additions and 31 deletions
+16 -2
View File
@@ -2,13 +2,25 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// what server scripts get, see docs/modding/
import type { EventSignal, Face, Id, ItemStack, ModInfo, Position, Season, TagApi } from "./shared.ts";
import type { EventSignal, Face, FluidApi, Id, ItemStack, ModInfo, Position, Season, TagApi } from "./shared.ts";
import type { ArgumentType, CommandNode } from "../commands.ts";
import type { LootTableJson } from "../loot.ts";
export type { ArgumentType, CommandContext, CommandNode, Suggestion } from "../commands.ts";
export type { EventSignal, Face, Id, ItemStack, ModInfo, Position, Season, TagApi, TagRegistry } from "./shared.ts";
export type {
EventSignal,
Face,
FluidApi,
FluidVariant,
Id,
ItemStack,
ModInfo,
Position,
Season,
TagApi,
TagRegistry,
} from "./shared.ts";
export interface ServerContext {
mod: ModInfo;
@@ -25,6 +37,8 @@ export interface ServerContext {
containers: ContainerApi;
items: ItemApi;
blocks: BlockApi;
// every fluid, named and colored by its rules, see docs/modding/resources/fluids.md
fluids: FluidApi;
recipes: RecipeApi;
tags: TagApi;
loot: LootApi;