17 lines
486 B
TypeScript
17 lines
486 B
TypeScript
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);
|