What are you searching for?

Lux

Lux

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

download 16 Downloads · favorite 1 Followers · Updated 1 week ago
Fabric Library Utility 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 +12 more

Versions

inventory_2
Lux 1.0.2

1.0.2 · 1 week ago · 669.68 KB

Release download
Fabric 1.21.1 1.21.2 1.21.3
inventory_2
Lux 1.20.1-1.0.0

1.20.1-1.0.0 · 1 week ago · 665.39 KB

Release download
Fabric 1.20.1 1.20.2 1.20.3
inventory_2
Lux 1.0.1

1.0.1 · 1 week ago · 677.32 KB

Release download
Fabric 1.21.1 1.21.2 1.21.3
inventory_2
Lux 1.0.0

1.0.0 · 1 week ago · 669.99 KB

Release download
Fabric 1.21.1 1.21.2 1.21.3

About

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.
open_in_new View on Modrinth
Compatibility
Client: Required Server: Required
gavel CC0-1.0

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 128.4M
favorite 27,401
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.4M
favorite 13,670
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
lock Cookie consent

SkinMC uses cookies to provide functionality and features.