Test mod
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import type { ClientContext } from "bworld/client";
|
||||
|
||||
// called on every player's client after the mod is downloaded, before the world shows up.
|
||||
// everything here is visible to players, so keep secrets and game rules in server.ts
|
||||
export function setup(ctx: ClientContext) {
|
||||
ctx.log("loaded");
|
||||
|
||||
// a HUD element, drawn every frame
|
||||
// ctx.hud.register("example_mod:hint", {
|
||||
// on_render(g) {
|
||||
// g.text("example mod is here", 8, 8);
|
||||
// },
|
||||
// });
|
||||
}
|
||||
Reference in New Issue
Block a user