Skip to content

Environmental Modifiers

Environmental Modifiers allow Texture Packs to modify specific areas/biomes based on an Area Definition. These modifications are based off the game's Environment attribute.

You can define an environmental modifier in assets/<namespace>/catharsis/environment_modifier/<id>.json.

JSON Format

The root object is an Environmental Modifier definition. There are three main types of modifiers you can define.

Composite (composite)

Allows you to group multiple modifiers under a single condition.

Root composite modifier object

Environmental Attribute (environmental_attribute)

Modifies vanilla environment attributes (e.g. fog color, sky color).

Root environmental_attribute modifier object
  • type: environmental_attribute
  • attribute: The attribute identifier to modify (e.g. minecraft:fog_color, minecraft:sky_color).
  • provider: An Attribute Provider that defines the new value.
  • condition: (Optional) A Condition for this specific attribute.

Biome Effect (biome_effect)

Modifies specific biome colors like grass, water, or foliage.

Root biome_effect modifier object
  • type: biome_effect
  • effect: The effect to modify. Can be water_color, foliage_color, dry_foliage_color, or grass_color.
  • provider: An Attribute Provider that defines the new color.
  • condition: (Optional) A Condition for this specific effect.

Attribute Providers

Attribute Providers determine how a value is overridden or modified.

Override (override)

Overrides the value.

Root override provider object
  • type: override
  • value: The exact value to override with (e.g. an integer color code).

Modified (modified)

Modifies the base value.

Root modified provider object
  • type: modified
  • modifier: The modifier identifier.
  • argument: The argument for the modifier.

Config (config)

Provides a value based on a Pack Configuration. This provider is only available for integer and color attributes (RGB/ARGB).

Root config provider object
  • type: config
  • pack: The name of the pack providing the configuration.
  • id: The identifier of the configuration value to read.

Conditions

Conditions check whether the modifier should be applied at a specific location.

In Area (in_area)

Checks if the position is within a specific Area Definition.

Root in_area condition object

True / False (true, false)

Constant conditions.

Root true/false condition object
  • type: true or false

Tree view icons from the Minecraft.wiki
Not an official Minecraft product. Not approved by or affiliated with Mojang or Microsoft.
Not approved by or affiliated with Hypixel.