minecraft-clone / src /types /biome.ts
TomatitoToho's picture
Upload src/types/biome.ts with huggingface_hub
ec9f30b verified
Raw
History Blame Contribute Delete
665 Bytes
export interface Biome {
id: string;
name: string;
category: string;
temperature: number;
humidity: number;
downfall: number;
precipitation: 'rain' | 'snow' | 'none';
grassColor: number;
foliageColor: number;
waterColor: number;
waterFogColor: number;
skyColor: number;
fogColor: number;
hasSkyLight: boolean;
depth: number;
scale: number;
effects: {
music?: string;
ambientSound?: string;
addSound?: string;
moodSound?: string;
};
features: string[];
spawns: {
[type: string]: SpawnEntry[];
};
}
export interface SpawnEntry {
type: string;
weight: number;
minCount: number;
maxCount: number;
}