Server authority
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import { register_block_item } from "$/common/utils.ts";
|
||||
|
||||
// behavior lives in server/game/blocks.ts
|
||||
const block = EverythingRegistry.register<BlockRegistry>("blocks", "bworld:chest", {
|
||||
id: "bworld:chest",
|
||||
textures: "bworld:planks",
|
||||
toughness: 8,
|
||||
requires_tool: false,
|
||||
tool_to_break: "axe",
|
||||
drop_table: "bworld:chest",
|
||||
has_collision: false,
|
||||
interactive: true,
|
||||
});
|
||||
|
||||
register_block_item(block);
|
||||
Reference in New Issue
Block a user