ColoredGlowLib
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!

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 animationrandom— 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
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

The library is used in my FoxGlow and LightWithin mods.
License
The mod is distributed under GNU LGPL3 license.