Blocks with sides !

This commit is contained in:
2026-03-14 19:56:12 -03:00
parent ea6a6acfbe
commit 5e7719207f
18 changed files with 334 additions and 160 deletions
+12 -1
View File
@@ -49,8 +49,19 @@ export class EverythingRegistry {
}
}
interface TextureSideTopBottom {
top: string;
bottom: string;
side: string;
}
interface TextureFront {
front: string;
side: string;
}
export interface BlockRegistry<T = unknown | undefined> {
texture_id: string | ((block: Block<T>) => string);
textures: string | TextureSideTopBottom | TextureFront;
has_collision: boolean;
transparent?: boolean;