ColoredGlow Lib
(There is a better description in the GitHub's repository of the mod and i don't gurantee that i will update this one ofter, but still)
This is a libray that makes entity glow different colors other than vanilla, and without bothering with team colors!
If you are a developer see the wiki on how to use this mod or scroll down for a bried overview, if you are not a dev just download this mod on your client and check the commands added down here!
NOW COMPATIBILE WITH FORGE AS WELL! (Since 2.0.0)
Check out my other mods!
https://www.curseforge.com/members/emafire003/projects
Configuration & Command for normal users
Every command begins with /cgl , short for ColoredGlowLib.
You can set a specif color for an entity in game using the /setglowcolor command. It works as it follows:
- /cgl setglowcolor <target>/<entitytype> <color>
The target
parameter is the entity you want to target, so @p, Emafire003, the uuid of the entity in front of you etc.
The entitytype parameter is a type of entity you want to target, a bit like the argument used in the summon command. So for example minecraft:cow, minecraft:player, minecraft:parrot ecc.
It is not recommended to use @e, @a and stuff that targets a lot of entities since it could cause lag, use instead the type of the entity you want to target.
Still, it should be fine for 500ish entities or so. Maybe more?
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 enable/disable a few settings with the config and the config command, such as the overriding of the default team colors that vanilla minecraft uses to determine which color an entity that's part of a team should glow. If it is enabled the mod will override those colors and use the mod's ones if the entity is part of team, if it's disabled it will let minecraft use the team's color (only if the entity is actually in a team, otherwise it will always use its colors)
The command to enable/disable this is:
- /cgl config set overrideTeamColors <true/false>
There is also a configuration file located in .minecraft/config/coloredglowlib/coloredglowlib_config.yml through which you can edit the settings above.
There also are othe settings, such as the generalized rainbow (makes everything glow rainbow), perEntity-color, perEntityType-color. Check the wiki or the command in game for more info!
For devs:
To include this into your project using gradle you can use (for the version check the modrinth versions pages):
repositories { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" content { includeGroup "maven.modrinth" } } } dependencies { modImplementation "maven.modrinth:coloredglowlib:<version>" }
You can also add this in the dependencies to shade this into your mod (jar-in-jar dependency)
include "maven.modrinth:coloredglowlib:<version>"
First of all get an instance of the library with ColoredGlowLib coloredGlowLibInstance = ColoredGlowLibMod.getLib();
In short, you can use coloredGlowLibInstance.method(); to set the color of an Entity / EntityType / in general.
For example to set a custom color for the EntityType.PARROT you will use coloredGlowLibInstance.setColorToEntityType(EntityType type, Color color); where the first parameter will be EntityType.PARROT and the second the color you want it to be, such as new Color(255, 60, 27) (small note, Color is the class bundeld with this library not java.awt.Color)
If you want an entity to glow rainbow use coloredGlowLibInstance.setRainbowColorToEntity(Entity entity);
Wow! 1k 2.6k 5k 44k downloads! :D