LambdAurora

LambDynamicLights v4.0.0 got released!


The Garden Awakens, but not alone. LambDynamicLights continue its improvement and updating streak with LambDynamicLights v4.0.0 for Minecraft 1.21.4!

I have worked relentlessly with my wonderful partner, Akarys, to bring this update to you all. On the table we have some changes that have made it into some subsequents updates of LambDynamicLights v3 which I didn't had an occasion to really talk about, and some very exciting changes in LambDynamicLights v4.0.0 for modders, modpack makers, and users!

Before getting into this post, I invite you to watch the new carefully crafted trailer made by Akarys, made to celebrate this new release:

Optimizations!

Before going into the changes brought in LambDynamicLights v4.0.0, I think it's important to address this big improvement that is also part of LambDynamicLights v3.0.0. As you might recall from the previous blog post, no mention of it was made. This is because those performance improvements haven't made it into the initial release.

With some hard work along with Akarys, we managed to rework the dynamic lighting engine entirely with multiple goals:

We will not be getting into the technical details of this rework in this post, there might be a post on either my or Akarys' blog about it in the future for those curious about it.

To illustrate this point, here's a comparison picture on 1.21.1 with LambDynamicLights v3:

Performance comparison on 1.21.1 between unoptimized and optimized version of LambDynamicLights, the test scene uses a thousand Magma Cubes in a Basalt Deltas biome. The unoptimized version runs at 3 FPS, while the optimized version runs at 69 FPS.

Furthermore, I can now proudly say that LambDynamicLights is the most optimized dynamic lighting mod on Fabric! It's even more optimized than OptiFine without Sodium!

New Features

While most new features target other modders, modpack makers, and resource pack makers. Some of those new features allowed for the addition of visible features like Beacon beams lighting, or even Guardian lasers lighting!

Guardian laser dynamically lighting the surrounding area.

While I've voiced concern in the past about adding such features to the mod, mostly due to performance, I can now say that I'm proud to have such unique features in this mod! This should give you an idea of how much the mod has been reworked and optimized to allow such features, which opens up many more possibilities for other modders as well!

New API Features and Documentation

Speaking of opening up more possibilities for other modders, and without forgetting about modpack makers or resource pack makers, this update comes pack with the final additions of the API rework I've started with LambDynamicLights v3.0.0.

While you might recall that I've reworked how item lighting is defined in resource packs, this update is the final step of the data-ification of the mod with the added ability to define entity lighting through resource packs! This has required additional work to make this flexible and feature-complete. This new entity lighting API takes the form of both JSON and Java code:

Aside from more JSON, Java-enjoyers can rejoice through the addition of a new API: the dynamic light behavior API. This API allows the definition of fully custom dynamic light sources and how they behave, and add them into the world. This is the same API that's been used to make possible the Guardian lasers or the Beam beams dynamic lighting.

To accompany all of this, a new documentation page is available on this very website! This has been needed for a good while now, as the old documentation was too condensed and too confusing.

As a bonus, the API code is also multi-loader, so multi-loader modders rejoice, you can now make the dynamic lighting code fully common!

I am excited to see what people will build with those new features!

Changelog

Downloads

Modrinth CurseForge GitHub releases

Wait a Minute, There's More!?

For those who have watched carefully the trailer, they might have noticed an additional section at the end.

This is also the trailer of Illuminated: our new mod and flashlight addon to LambDynamicLights.

In addition of flashlights setting a very special mood in the game, it also show what the new dynamic lighting behavior API can do.

We hope that you will try it out and enjoy it!

Illuminated Downloads

Modrinth CurseForge GitHub releases

Conclusion

If you've enjoyed this post, this update, or Illuminated, we invite you to follow us on our socials (@lambdaurora.dev and @akarys.me on Bluesky, @LambdAurora and @Akarys42 on YouTube). If you have questions, feedback, or even just want to say hi, don't hesitate to come by my Discord server!

Thank you for your support and have fun!