
Lux
A simple, easy-to-use screen flash system!
About this Mod
Lux
Lux is a simple, easy to use screen flash system for Minecraft which can be used extremely efficiently.
To add the mod to your development environment, import this into your repositories tab:
maven {
url = "https://api.modrinth.com/maven"
}
This allows Modrinth URLs to be imported,
then, add this to your dependencies tab:
modImplementation "maven.modrinth:lux_chemthunder:${project.lux_version}"
And this will import Lux!
How to Use Screen Flashes!
To use a screen flash, simply type the LuxFlashRenderer into your given method (method should contain a PlayerEntity, which is the viewer.)
Then, add .sendFlash, and input the parameters, which are as follows:
PlayerEntity viewer: who can see the flash.
int color: the color of the flash.
Optional
Easing easing: The easing of the flash.
int holdTicks: The amount of ticks the initial frame of the flash is held.
Example
public class TestItem extends Item {
public TestItem(Settings settings) {
super(settings);
}
public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand) {
LuxFlashRenderer.sendFlash(user, 0xffffff, Easing.easeOutQuad, 20);
return super.use(world, user, hand);
}
}
Overflows
LuxFlashRenderer.sendFlash(user, 0xffffff);
LuxFlashRenderer.sendFlash(user, 0xffffff, Easing.linear);
LuxFlashRenderer.sendFlash(user, 0xffffff, Easing.linear, 20);
LuxFlashRenderer.sendFlash(user, 0xffffff, 20);
FAQ
Will I update this mod to future versions?
- Most likely yes. I intend to use Lux for many more mods to come.
Will this mod be backported to x?
- Depends on the version, as I heavily dislike modding for any version below
1.21.1.
Will this mod be ported to Mod Loader?
- Absolutely not. I do not mod for any Loader other than Fabric.
Can I port this mod?
- No. Not without my permission.
Why is the repository private?
- It will be eventually, but it is mainly private since the code is still very unstable as of me writing this.
Available Versions
How to Install Lux on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "Lux". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+14 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Lux server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is Lux compatible with fabric?
Lux officially supports fabric for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Lux – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Lux consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Lux with just one click on your server.