This commit is contained in:
2026-09-26 18:06:05 -03:00
parent 01a81b926e
commit e22f12c0b6
12 changed files with 215 additions and 35 deletions
+4
View File
@@ -99,6 +99,8 @@ export function block_light_emission(block: BlockRegistry | undefined): number {
export interface BlockRegistry {
id: string;
// what players see, like "Iron Ore". made from the id when not set, see display_name in common/utils.ts
name?: string;
textures: BlockTextures;
// the block model, engine:cube when not set. see common/block_models.ts
model?: string;
@@ -135,6 +137,8 @@ export interface BlockRegistry {
export interface ItemRegistry<T = unknown | undefined> {
texture_id: string | ((item: ItemStack<T>) => string);
// what players see, like "Iron Ingot". made from the id when not set, see display_name in common/utils.ts
name?: string;
block_id?: string;
tool_type?: string;
max_stack?: number;