This library enables you to make entities glow different colors other than plain white or based on their team color.
Just drag and drop this mod into your mod folder and enjoy! (Make sure you are downloading the correct file for the correct loader tho!)
Every command begins with /cgl
, short for ColoredGlowLib. You can also use /coloredglowlib
.
You can specify a color to use for an entity/entitytype using the following command:
/cgl setglowcolor <entity/type> <color>
The entity
parameter is the entity you want to target, so @p, Emafire003, the uuid of the entity in front of you etc or it's type such as minecraft:sheep
. It is not recommended to use @e, @a and stuff that targets a lot of entities. If you want you can use it anyway, for ~1000ish entities it should run just fine, maybe even a lot more. At around 4k tho it starts to complain so don't push it.
The color
parameter is a hexadecimal color code (like #ff85ab, #750711, #abc, #123, #a7e ecc, search "color picker" online to get them) without the #
since minecraft interprets it as a beginning of a tag (which is not what it should be doing in this case). In alternative you can provide the word rainbow
that will make the entity glow, you guessed it, rainbow.
You can interact with the config directly in game. For example if you want to override the default team colors (the ones minecraft assigns) with the command:
/cgl config set overrideTeamColors <true/false>
It is recommended to leave this on false, since you may have some other mod/datapack/modpack that sets a team color to an entity, and it can get confusing.
You can also get the current value of the setting, like so:
/cgl config get overrideTeamColors
More of this in the wiki!
Include this library into your build.gradle
as a dependency
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:coloredglowlib:<version>"
}
Include this library into your build.gradle
as a dependency
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
implementation "maven.modrinth:coloredglowlib:<version>+forge"
}
You can find the correct version in the versions page on Modrinth.
You can find more information on the wiki!
You can find examples of this lib being used in my FoxGlow and Glowful World mod.
This mod is available under the GNU LGPL3 License.
If you would like to offer me a coffee, here you go.
For modpack devs: You are permitted to use this mod without directly asking, but please credit me somewhere, it would help! (Also, I'm kind of a curious person so maybe send me a message when you include it into your modpack, and I'd like to check it out)