

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.
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.