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