Mod

Opal Light

Quick rating

Opal Light

No reviews yet

A universal colored light API with automatic Iris Shaders and VulkanMod compatibility.

QoL & Tweaks
Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
OpalLight-1.1.1
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

OpalLight —— Colored Light API


Overview

OpalLight provides a universal colored light API for Minecraft. Unlike common full-screen shader approaches, OpalLight uses per-block, voxel-level RGB light propagation——colors travel through blocks via BFS, attenuate with distance, mix across RGB channels, and take the strongest value within each channel. This means colored lighting renders correctly around corners and through complex geometry, rather than being a screen-space post-effect.

The key advantage: automatically compatible with the vast majority of Iris Shaders with zero user configuration. Also fully supports the VulkanMod renderer.

Core Features

Powerful Colored Light API

  • Data-driven + event-driven: Register colored light sources via JSON data files, or programmatically through the ModificationEvent.
  • StatePropertiesPredicate support: Different block states of the same block can emit different colors.
  • Zero-invasion integration: Any block from any mod can emit colored light——just register data or listen to the event.

True Color Propagation

  • Voxel-level BFS light propagation, with linear attenuation over Manhattan distance.
  • Per-channel multi-source merging: different channels mix naturally while equal channels use the strongest value, so removing a source remains exact.
  • Correct lighting regardless of terrain complexity——corners, crevices, and caves all light accurately.

Broad Compatibility

  • Iris Shaders: Automatically compatible with the vast majority of shader packs. No manual compatibility selection needed.
  • VulkanMod: Native support for the Vulkan renderer.
  • Custom shaders use Core Profile GLSL 150, standards-compliant to avoid rendering conflicts.

Example: Colored Lanterns

Seven colored lanterns are included as API usage demonstrations:

Lantern Recipe
Red / Orange / Yellow / Green / Cyan / Blue / Purple Lantern Vanilla lantern + matching dye (shapeless)

Each lantern is registered through OpalLight's API, showing how blocks are associated with RGB colors.

Showcase

Vanilla

image

Complementary

image

BSL

image

Photon

image

Mellow

image

VulkanMod

image

For Developers

// Listen to ModificationEvent to register colored light for any block
@SubscribeEvent
public static void onLightModification(LightDataLoader.ModificationEvent event) {
    event.getDataByBlock().put(
        MyBlocks.GLOWING_CRYSTAL,
        List.of(new LightDataLoader.OpalData(new OpalColor(0.2f, 0.8f, 1.0f), Optional.empty()))
    );
}

Or drop a JSON file under assets/<modid>/opal_data/ for zero-code integration.

Compatibility

Project Status
Iris Shaders Auto-compatible with most shader packs
VulkanMod Fully supported
NeoForge 1.21.1 Native platform
Other mods' light-emitting blocks Compatible via API registration

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync