Single module modding

This commit is contained in:
2026-11-14 12:18:41 -03:00
parent 605008f584
commit 313098892e
134 changed files with 919 additions and 924 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ const JAR = "testmod:jar";
const SERVER_SCRIPT = `
import type { FluidStack, ServerContext } from "cubi/server";
export function setup(ctx: ServerContext) {
export function server(ctx: ServerContext) {
// two tanks kept in its data, reached from every side but the bottom
ctx.components.register_block("testmod:tank", {
fluid_handler(block, _params, face) {
@@ -48,7 +48,7 @@ async function setup() {
name: "Test",
version: "1.0.0",
dependencies: [{ id: "bworld", version: "*" }],
scripts: { server: "scripts/server.ts" },
main: "scripts/server.ts",
});
write("fluids/syrup.json", { format_version: 1, fluid: { id: SYRUP.id, color: "#a0522d" } });
write("fluids/honey.json", { format_version: 1, fluid: { id: HONEY.id, color: "#e0a030" } });