Download ColoredGlowLib — Minecraft Mods — MetaMods
ColoredGlowLib

ColoredGlowLib

Active

Downloads

19

Last update

4 months ago

Versions

21w14a — 1.21.5
Client
Fabric
Forge
Quilt
Decor
Libraries
Utils

ColoredGlowLib

cgl_2k

This library opens up new possibilities for entity glowing in Minecraft! Now you can assign any color glow instead of the standard white or vanilla team colors. Additionally, animated effects with smooth color transitions are available — for example, rainbow shifting!

coloredglowlib-with-player

Usage

Regular players can use commands to configure colors and create custom animations through datapacks. Developers have access to an API with detailed documentation.

Commands

All commands start with /cgl (short for ColoredGlowLib) or the full version /coloredglowlib.

Main command for setting color:

/cgl setglowcolor <entity/type/default> <color>

The entity/type/default parameter determines the target: specific entity (@p, player name, UUID) or type (e.g., minecraft:sheep). The default value sets the default color for all entities without individual settings.

The color parameter accepts hexadecimal codes (e.g., ff85ab, 750711) without the # symbol. Also available keywords:

  • rainbow — rainbow animation
  • random — random color change every half second
  • name of custom animation from datapack

Settings

Overriding standard Minecraft team colors:

/cgl settings set overrideTeamColors <true/false>

Viewing current settings:

/cgl settings get overrideTeamColors

Removing color:

/cgl clear <entity/type/default> [useDefault]

The optional useDefault parameter (true/false) determines whether to use the default color instead of white glow.

Custom Animations

HEADER

Create custom color animations through datapacks. After creation, use the animation name as a color parameter in commands:

/cgl setglowcolor @p marine

Installation

For Players

Simply place the mod file in the mods folder (make sure you choose the version for the correct loader).

For Developers

Add dependency to build.gradle:

repositories {
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:coloredglowlib:<version>"
}

IMPORTANT: Due to a current bug, CardinalComponentsAPI must be additionally added:

repositories {
    maven {
        name = "Ladysnake Mods"
        url = 'https://maven.ladysnake.org/releases'
    }
}

dependencies {
    modImplementation("dev.onyxstudios.cardinal-components-api:cardinal-components-base:5.4.0")
    modImplementation("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:5.4.0")
    modImplementation("dev.onyxstudios.cardinal-components-api:cardinal-components-scoreboard:5.4.0")
}

Current versions are available on the mod page. For Forge version, add +forge to the version number (not available for 3.0.0). If CardinalComponentsAPI is already used in your mod, download the version with +nocca suffix.

Usage Examples

luma-shaders-coloredglowlib

The library is used in my FoxGlow and LightWithin mods.

License

The mod is distributed under GNU LGPL3 license.

Project members
Emafire003

Emafire003

Developer

Created: 21 Feb 2022

ID: 428