Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / BiomeEffects

Class: BiomeEffects โ€‹

Defined in: core/values/biome/effects.ts:27

A biome's atmosphere: colours, particles, sounds and music. Built through BiomeDef.effects.

Where each setting lands in the file depends on the version; see ATTRIBUTES_DATA_VERSION.

Constructors โ€‹

Constructor โ€‹

new BiomeEffects(): BiomeEffects

Returns โ€‹

BiomeEffects

Properties โ€‹

s โ€‹

readonly s: EffectsState

Defined in: core/values/biome/effects.ts:29

The effect settings, read by the IR.

Methods โ€‹

additionsSound() โ€‹

additionsSound(sound, tickChance): this

Defined in: core/values/biome/effects.ts:105

The rare "additions" sound, rolled at tickChance per tick.

Parameters โ€‹

sound โ€‹

SoundEvent

tickChance โ€‹

number

Returns โ€‹

this


ambientSound() โ€‹

ambientSound(sound, range?): this

Defined in: core/values/biome/effects.ts:93

The continuous background loop (e.g. SoundEvent.AMBIENT_CAVE).

Parameters โ€‹

sound โ€‹

SoundEvent

range? โ€‹

number

Returns โ€‹

this


dryFoliageColor() โ€‹

dryFoliageColor(color): this

Defined in: core/values/biome/effects.ts:68

Dried-foliage tint. 1.21.5+; dropped on older versions.

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this


fogColor() โ€‹

fogColor(color): this

Defined in: core/values/biome/effects.ts:32

Fog colour seen at distance. Moves to visual/fog_color on 1.21.11+.

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this


foliageColor() โ€‹

foliageColor(color): this

Defined in: core/values/biome/effects.ts:56

Leaf tint override (default: derived from climate).

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this


grassColor() โ€‹

grassColor(color): this

Defined in: core/values/biome/effects.ts:62

Grass tint override (default: derived from climate).

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this


grassColorModifier() โ€‹

grassColorModifier(modifier): this

Defined in: core/values/biome/effects.ts:74

One of the two built-in grass recolours (dark forest / swamp).

Parameters โ€‹

modifier โ€‹

GrassColorModifier

Returns โ€‹

this


moodSound() โ€‹

moodSound(sound, opts): this

Defined in: core/values/biome/effects.ts:99

The occasional dark-cave scare sound.

Parameters โ€‹

sound โ€‹

SoundEvent

opts โ€‹

MoodSoundOpts

Returns โ€‹

this


music() โ€‹

music(sound, opts): this

Defined in: core/values/biome/effects.ts:114

Adds a music track. Repeatable on 1.21.4-1.21.10 (weighted list). Older versions and 1.21.11+ only use the first call.

Parameters โ€‹

sound โ€‹

SoundEvent

opts โ€‹

MusicOpts

Returns โ€‹

this


musicVolume() โ€‹

musicVolume(volume): this

Defined in: core/values/biome/effects.ts:120

Music volume in this biome (1.21.4+), 0..1.

Parameters โ€‹

volume โ€‹

number

Returns โ€‹

this


particle() โ€‹

particle(particle, probability): this

Defined in: core/values/biome/effects.ts:80

An ambient particle (like a warped forest's motes), at probability per tick.

Parameters โ€‹

particle โ€‹

Particle

probability โ€‹

number

Returns โ€‹

this


particleRaw() โ€‹

particleRaw(options, probability): this

Defined in: core/values/biome/effects.ts:87

Particle with extra options (dust, block...); options is the particle object as-is.

Parameters โ€‹

options โ€‹

Record<string, unknown>

probability โ€‹

number

Returns โ€‹

this


skyColor() โ€‹

skyColor(color): this

Defined in: core/values/biome/effects.ts:38

Sky colour. Moves to visual/sky_color on 1.21.11+.

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this


waterColor() โ€‹

waterColor(color): this

Defined in: core/values/biome/effects.ts:44

Water tint. Stays in effects on every version.

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this


waterFogColor() โ€‹

waterFogColor(color): this

Defined in: core/values/biome/effects.ts:50

Underwater fog colour. Moves to visual/water_fog_color on 1.21.11+.

Parameters โ€‹

color โ€‹

BiomeColor

Returns โ€‹

this

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.