Single module modding
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user