bedrock-kit
    Preparing search index...

    Class Biome

    A unified view of a biome that bridges BehaviorBiome (server-side) and ClientBiome (client-side) into a single object.

    Biome is not itself a file-backed asset — it is a logical grouping. Raw file data is accessible through biome.behavior.data and biome.resource.data.

    Access via addon.biomes.get(id).

    const biome = addon.biomes.get("tsu_nat:maple_forest");
    console.log(biome?.behavior?.entities.map(e => e.id));
    console.log(biome?.fog?.id); // shortcut for biome.resource.fog.id
    console.log(biome?.ambientSounds); // shortcut for biome.resource.ambientSounds
    Index

    Constructors

    Properties

    behavior: BehaviorBiome

    The behavior pack (server-side) definition for this biome. undefined if not present.

    id: string

    The namespaced biome identifier, e.g. "tsu_nat:maple_forest".

    resource: ClientBiome

    The resource pack (client-side) definition for this biome. undefined if not present.

    Accessors

    • get docstrings(): CommentBlock[]

      JSDoc comment blocks parsed from the backing file. Returns behavior docstrings if present, otherwise resource docstrings.

      Returns CommentBlock[]

    • get fog(): Fog

      The resolved fog for this biome. Shortcut for biome.resource?.fog.

      Returns Fog