minecraft-clone / src /types /block.ts
TomatitoToho's picture
Upload src/types/block.ts with huggingface_hub
179199e verified
Raw
History Blame Contribute Delete
537 Bytes
export interface BlockState {
id: string;
properties: Record<string, string>;
lightLevel: number;
hardness: number;
resistance: number;
blastResistance: number;
requiresTool: boolean;
toolType: string | null;
stackSize: number;
transparent: boolean;
solid: boolean;
opaque: boolean;
luminance: number;
blockFace: BlockFace;
}
export enum BlockFace {
BOTTOM = 0,
TOP = 1,
NORTH = 2,
SOUTH = 3,
WEST = 4,
EAST = 5,
}
export interface BlockProperties {
[key: string]: string | number | boolean;
}