your current location:首页 > news>[C GL] Colored Glow Lib Minecraft

[C GL] Colored Glow Lib Minecraft

2024-12-12 09:20:28|Myriagame |source:minecraft skins

Colredglow lib

This library module allows you to set the color of the entity. In addition to the ordinary white or Minecraft original team color, you can also set different colors.

You can also add custom color animation, a set of colors will change over time, just like a rainbow!

Minecraft images

For ordinary users, you can use commands to set custom colors and use packets to add custom animation, and developers can use API, Javadoc and Wiki as guidelines.

Minecraft images

instruction

Each command starts with "/cgl", which is the abbreviation of ColoredGlowlib.You can also use "/colorDglowlib".

You can use the following commands for the color specified by the entity or entity type:

/cgl SetglowColor  

Parameters are the goals you want to position, such as "@P", "Emafire003", UUID of the entity in front of you, or its type, such as ".ntity/Type/Default"The entity will glow with the default color, such as the default color of "Minecraft: Sheep".

The parameter is a hexadecimal color code (such as "#FF85AB", "#750711", "#ABC", "#123", "#A7E", etc., you can search for "Color Picker" to get them),Do not include "#", because MineCraft will explain it as the beginning of the label (in this case, you should not do this).

Or, you can provide the word "rainbow" to let the entity shine.You can also use "Random" to make the entity emit different random colors every half second, or use other strings of the customized animation added by the representative through the packet!

There are some settings that you can adjust.For example, if you want to cover the default team color assigned by Minecraft:

/cgl Settings Set OverridEamColors  

You can also get the current value of the settings:

/cgl Settings get overrideteamcolors 

To remove the color, you can use it:

/cgl clear  [UseDefault] 

"UseDefault" is an optional True/False parameter.If you set to True, you will use the default color instead of setting the color of the entity to white.

More information can be found in wiki!

Custom color animation

You can add a customized animation through a packet, and you can find an example here.

After creating a packet, you can use it as a color, corresponding to the name parameter you set inside the packet.

For example, you can use:

/cgl SetglowColor @P Marine 

More information can be found in wiki.

set up

For ordinary users:

Just drag and drop this module into your module folder, and then enjoy the fun it brings!(Make sure you download the correct file for the correct loader!)

Developers pay attention:

Add this library as a dependency item to your library.

 repositories {maven {name = "modrinth" url = "" rel = "noopent nofollow" target = "_blank"> https://api.modenttings h.com/maven en al; Content {Includegroup "Maven.modrinth"}}} Dependencies {modimplementati You also add CardinalComponentsapiIn your project, you can do this by adding these to dependencies:

 repositories {maven {name = "ladysnake mods" url = 'https://maven.ladysnake.org/releases'}} defennden CIES {Modimplementation ("DEV.ONYXSTUDIOS.CARDINAL-Components-api: Cardinal-components-base: 5.4.0 ") Modimplementation (" DEV.ONYXSTUDIOS.CARDINAL-Components-API: Cardinal-components: 5.4.0 ")) ModImplementa n: Cardinal-components-scoreboard: 5.4.0 ")} 

You can find the correct version on the version of the Modrinth.If you want to Forge version, add +forge to the digital version.(Note: Currently not applicable to 3.0.0)

If the CardinalComponetsapi module is already needed, please consider downloading the MOD version that has not yet contained them to add+noCCA to the version format.

The required modules are: Base, Entity, Scoreboard.

You can find more information on wiki!

You can find the example of this library in the author's Foxglow and Lightwithin.

license

Minecraft images

This module can be used under the GNU LGPL3 license.