Change imports

This commit is contained in:
2026-11-04 21:51:26 -03:00
parent 98fa45ebd1
commit ba4b2a8798
270 changed files with 994 additions and 994 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ Every event is a signal you subscribe to. Events come in two kinds:
- **After events** fire once it has happened. They're for reacting, and can't change anything.
```ts
import type { ServerContext } from "bworld/server";
import type { ServerContext } from "cubi/server";
export function setup(ctx: ServerContext) {
// nobody breaks blocks within 16 blocks of the world's center
+3 -3
View File
@@ -46,7 +46,7 @@ on every client, before any script runs. See [Registries](registries.md).
### Server Scripts
```ts
import type { ServerContext } from "bworld/server";
import type { ServerContext } from "cubi/server";
export function setup(ctx: ServerContext) {
// register components and commands, subscribe to events
@@ -64,7 +64,7 @@ world, through [tile data](../blocks/tiledata.md), [containers](../inventories/c
### Client Scripts
```ts
import type { ClientContext } from "bworld/client";
import type { ClientContext } from "cubi/client";
export function setup(ctx: ClientContext) {
ctx.ui.add_inventory_overlay({ on_render(g, screen) {/* ... */} });
@@ -81,7 +81,7 @@ Client code is visible to players and can be changed by them. Never trust it for
### Shared Scripts
```ts
import type { SharedContext } from "bworld/shared";
import type { SharedContext } from "cubi/shared";
export function setup(ctx: SharedContext) {
ctx.components.register_block("copper_tools:pipe", {