Download Colored Lights — Minecraft Mods — MetaMods
Colored Lights

Colored Lights

Active

Downloads

0

Last update

3 years ago

Versions

21w14a — 1.18.2
Client
Fabric
Forge
Decor
World generators

Colored Lights

Introducing an innovative approach to colored lighting in Minecraft that uses zonal tinting to achieve stunning visual effects without significant performance impact.

Traditional methods of calculating colored lighting require enormous amounts of memory, making them practically unusable in the game. Our mod offers a reasonable compromise: lighting color is calculated for each chunk corner, and smooth color blending occurs within the chunk. While this method isn't perfect and has some visual artifacts, it delivers impressive results with minimal impact on performance.

Lighting example

Lighting example

Configuration and Mod Integration

Colors emitted by blocks can be easily configured using resource packs! This means any mod can add colored lighting support simply by adding a data file.

To modify or add lighting colors, create assets/colored_lights/light_colors.json:

{
  "replace": false,
  "colors": {
    "redstone_torch": "#ff3333",
    "lava": "#ff9933"
  }
}

The configuration must contain a mapping between blocks that emit light and the corresponding hexadecimal color values they should emit. Note that colors aren't displayed exactly due to color space compression.

If the replace parameter is set to true, default values will be cleared. For packs that simply add to existing color mappings or replace only specific entries, replace should be false.

The mod works entirely client-side and requires Fabric Loader and API installation.

Project members
Gegy

Gegy

Developer

Razzokk

Razzokk

Created: 12 Apr 2021

ID: 848