Mod

Lux

Quick rating

Lux

No reviews yet

A simple, easy-to-use screen flash system!

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Filter by exact patch versions
Loading exact 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 updated review is now pending. It 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

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
Creative Commons Zero v1.0 Universal
Latest Version
1.20.1-1.0.0

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

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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.

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
Reviews
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
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