All Mods Resource Packs Data Packs Shaders Modpacks Plugins
ColoredGlowLib

ColoredGlowLib

by Emafire003 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

cgl_2k

This library mod enables you to make entities glow different colors other than plain white or Minecraft vanilla's Team colors. You can also add custom color animation, a set of colors that will change overtime, like a rainbow!

HEADER

For normal users, you can use the commands to set custom colors, and datapacks to add custom animation, while developers can use the API and the javadoc as guide. There is also a wiki.

coloredglowlib-with-player

nodecraft

Commands

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/default> <color>

The entity/type/defaylt parameter is what 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. default means that all entites that don't have a specific color will glow the default color.

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 also use random to make an entity glow a different random color every half a second, or another string that represents a custom animation added via datapack!

There also are some settings you can tweak. For example if you want to override the default team colors (the ones minecraft assigns) with the command:

/cgl settings set overrideTeamColors <true/false>

You can also get the current value of the setting, like so:

/cgl settings get overrideTeamColors

To remove a color you can use:

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

useDefault is an optional true/false parameter. If set to true, the default color will be used instead of setting the color for entities to white.

More of this in the wiki!

bisecthosting

Custom color animations

You can add custom animations via a datapack, you can find an example of one here. After you created the datapack, you can use it as a color, corresponding to the name parameter you have set inside the datapack.

For example you can use: /cgl setglowcolor @p marine

More info in the wiki.

Setup

For normal users:

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

For developers:

Add 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>"
}

NOTE there currently is a f***ing annoying bug that I can't seem to fix, requiring you to add CardinalComponentsAPI to your project as well, and you can do that by adding these as dependencies:

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")
}

You can find the correct version in the versions page on Modrinth. If you want the forge version, add a +forge to the number version. (NOTE: Not currently availbale for 3.0.0)

If you already need CardinalComponetsAPI modules in your mod, consider downloading the version of the mod that doesn't already include them, by adding a +nocca in the version format. The modules needed are: base, entity, scoreboard.

You can find more information on the wiki!

You can find examples of this lib being used in my FoxGlow and LightWithin mod.

luma-shaders-coloredglowlib

License

This mod is available under the GNU LGPL3 License.

Support me

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)

My other projects:

  • LightWithin: a mod adding player-unique magicalish fancy powers that activate when the player is in danger!
  • FoxGlow: a mod that makes foxes and player glow whenever you eat the Glow Berry, or other glowy foods!
  • BeamPass: makes the beacom beam pass through selectable blocks, even if they are solid!
  • StructurePlacerAPI: an API that allows developers to easly place NBT structures in the world, and to restore it afterwards!
  • Seedlight Riftways: An experimental mod to travel seamlessly from worlds to servers and viceversa though portals!
  • And others! Check them out over my profile page!

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.2 26.1.x
Fabric Quilt
3mo ago 1
1.21.11
Fabric Quilt
6mo ago 1
1.21.11
Fabric Quilt
6mo ago 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.4
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.21
Fabric Quilt
last yr. 1
1.21
Fabric Quilt
last yr. 1
1.21
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.2
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric
last yr. 1
23w35a 23w33a 23w32a +2
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.19.x
Forge
last yr. 1
1.19.x
Forge
last yr. 1
1.19.x
Fabric Quilt
last yr. 1
1.19.x
Forge
last yr. 1
1.19.x
Fabric Quilt
last yr. 1
1.19.x
Fabric Quilt
last yr. 1
1.19
Fabric Quilt
last yr. 1
21w14a 1.18.x 1.17.x
Fabric Quilt
last yr. 1
22w14a 22w13a 22w13oneblockatatime +4
Fabric
last yr. 1
22w14a 22w13a 22w13oneblockatatime +4
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.x 1.17.1
Fabric
last yr. 1
1.18.2 1.17.1
Fabric
last yr. 1
1.18.x 1.17.1
Fabric
last yr. 1
1.18.x 1.17.x
Fabric
last yr. 1
1.18.1
Fabric
last yr. 1
1.18.1 1.17.1
Fabric
last yr. 1
1.18.1 1.17.1
Fabric
last yr. 1
1.18.1 1.17.1
Fabric
last yr. 1
1.18.1
Fabric
last yr. 1
updated to 1.21.11
updated to 1.21.11. nocca version
  • Updated to 1.21.4/.5
  • Fixed a bug where entities glowed black by default
Updated to 1.21.4.
Should also be compatible with Neoforge when and if Connector updates to 1.21.4
Now reloading a datapack in a server will show the new animations to the clients!
Now reloading a datapack in a server will show the new animations to the clients!
Now reloading a datapack in a server will show the new animations to the clients!
Same changes as 3.2.1. This version does not bundle Cardinal Components API in the jar file, you must downlaod it separately.
Same changes as 3.2.1. This version does not bundle Cardinal Components API in the jar file, you must downlaod it separately.
Same changes as 3.2.1. This version does not bundle Cardinal Components API in the jar file, you must downlaod it separately.
Backported changes from 3.2.0 to 1.19.2
Backported changes from 3.2.0 to 1.19.2
This version doesn't bundle CardinalComponentsAPI, you will need to download that separately.
Backported changes from 3.2.0 to 1.20.1
Backported changes from 3.2.0 to 1.20.1. This version doesn't bundle CardinalComponentsAPI, you will need to download that separately.
This version fixed some major bugs, and also added a new feature: colors visible only to some players and not others!
  • You can make an entity glow a certain color only for a specified player using #setColorFor(target, color, colorViewer) with the API, or using the command /cgl setglowcolor <target> <color> [visibleToPlayer]
  • Fixed a bug where the mod wouldn't work propely when a client connected to the server. (Now it will actually display the custom colors)
  • Fixed a bug where custom color animations wheren't able to load on a client that connected to a server
  • Fixed #hasCustomOrDefaultColor(target) giving an inverted result

Same is 3.2.0, but this build doesn't bundle CCA with it, as usual.
Straight port to 1.21, CCA not included in the jar file. (download it separately)
Straight port to 1.21
Same NPE fix, version withou CCA in the jar file
  • Fixed a NullPointerException
Same thing as 3.1.0+fabric_1.20.6, but without CCA included in the modjar. You will need to download it separately.
  • Updated to 1.20.6
  • Fixed some internal issues
  • Slightly improved javadoc
Added compat with 1.19.2
Same as 1.20.4, but compatible with 1.20.1 and without CCA included in the jar file
  • Same as 1.20.4, but compatible with 1.20.1
  • Added javadocs and sources
  • Fixed a problem with methods not being recognized correctly in 1.20.4 mixins
  • Also added javadocs and soruces
Overhauled the API, meaning there are breaking changes!
  • Now the color are saved using NBT through the use of CCA
  • The API is now much cleaner and clearer, with better javadocs as well
  • Added a way to add Custom Color animations as well, so you can make your cows glow black and white! You will need to use datapacks, check how on the wiki!
  • Added the "random" color glow, which changes to a random color every 7 ticks, so almost half a second.
  • Added /cgl clear command, to remove the custom glow color from entities & default & such
  • Moved the /cgl config to /cgl settings
  • Added permissions for the commands
  • Fixed the mod icon not showing correctly

  • Third time uploading this same release, because of weird random errors when used as an API! Yay...
Same as 3.0.0, but doesn't have Cardinal Components API embedded, so you will have to include it in your mod yourself or downlaod it separetly.
Version compatible with 1.20.2 (only)
ColoredGlowLib Icon
Download ColoredGlowLib
Select game version
Select platform