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
@@ -10,7 +10,7 @@ import { copy_dir, test_game } from "./helpers.ts";
const SCRIPT = `
import type { ServerContext } from "cubi/server";
export function setup(ctx: ServerContext) {
export function server(ctx: ServerContext) {
(globalThis as any).season_test = { ctx, created: [] };
ctx.components.register_block("testmod:thermometer", {
on_create(block) {
@@ -42,7 +42,7 @@ function season_mods() {
name: "Test",
version: "1.0.0",
dependencies: [{ id: "bworld", version: "*" }],
scripts: { server: "scripts/server.ts" },
main: "scripts/server.ts",
}),
);
Deno.writeTextFileSync(