本模组库允许你让实体发出除纯白色或 Minecraft 原版队伍颜色之外的其他颜色。你还可以添加自定义颜色动画,即一组随时间变化的颜色,比如彩虹色!
对于普通用户,你可以使用命令来设置自定义颜色,并使用数据包添加自定义动画;而开发者可以使用 API 和 Javadoc 作为参考。此外还有一个维基页面。

命令
每个命令都以 /cgl 开头,这是 ColoredGlowLib 的缩写。你也可以使用 /coloredglowlib。
你可以使用以下命令为实体(或实体类型)指定要使用的颜色:
/cgl setglowcolor <entity/type/default> <color>
entity/type/default 参数是你想要目标的目标,例如 @p、Emafire003、你面前的实体的 UUID 等,或者是它的类型,如 minecraft:sheep。default 表示所有没有特定颜色的实体都将发出默认颜色的光。
color 参数是一个十六进制颜色代码(如 #ff85ab, #750711, #abc, #123, #a7e 等,在网上搜索“颜色选择器”以获取这些代码),但不需要带 # 符号,因为 Minecraft 会将其解释为标签的开始(在这种情况下这不是它应该做的)。或者,你可以提供单词 rainbow,这样实体就会发出彩虹色的光。你还可以使用 random 让实体每半秒发出一种不同的随机颜色,或者使用另一个字符串来表示通过数据包添加的自定义动画!
还有一些设置可以调整。例如,如果你想用命令覆盖默认的队伍颜色(Minecraft 分配的那些),可以使用:
/cgl settings set overrideTeamColors <true/false>
你还可以获取设置的当前值,如下所示:
/cgl settings get overrideTeamColors
要移除颜色,你可以使用:
/cgl clear <entity/type/default> [useDefault]
useDefault 是一个可选的 true/false 参数。如果设置为 true,则将使用默认颜色,而不是将实体颜色设置为白色。
更多内容请查看维基!
自定义颜色动画
你可以通过数据包添加自定义动画,你可以在这里找到一个示例。创建好数据包后,你可以将其用作颜色,对应于你在数据包中设置的 name 参数。
例如,你可以使用:
/cgl setglowcolor @p marine
更多信息请查看维基。
安装
对于普通用户:
只需将此模组拖放到你的模组文件夹中即可享受!(请确保下载的是适用于正确加载器的文件。)
对于开发者:
将此库作为依赖项添加到你的 build.gradle 中:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:coloredglowlib:<version>"
}
注意 目前有一个非常烦人的 bug,我无法修复,需要你也将 CardinalComponentsAPI 添加到项目中,你可以通过添加以下依赖项来实现:
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")
}
你可以在 Modrinth 上的 版本页面 找到正确的版本。
如果你想获取 Forge 版本,请在版本号后加上 +forge。(注意:目前 3.0.0 版本不可用)
如果你的模组已经需要 CardinalComponentsAPI 模块,可以考虑下载不包含这些模块的版本,在版本号格式中添加 +nocca。
需要的模块是:base, entity, scoreboard。
你可以在 维基 上找到更多信息!
你可以在我的 FoxGlow 和 LightWithin 模组中找到此库的使用示例。

许可证
本模组根据 GNU LGPL3 许可证发布。
支持我
如果你想请我喝杯咖啡,请随意。
对于整合包开发者:你被允许直接使用此模组,无需直接询问,但请署名感谢,这会对我很有帮助!(另外,我有点好奇,所以也许当你把它加入整合包时给我发个消息,我想去看看)
我的其他项目:
- LightWithin: 一款模组,为玩家在危险时激活独特的魔法般华丽能力!
- FoxGlow: 一款模组,让你食用发光浆果或其他发光食物后,狐狸和玩家都会发光!
- BeamPass: 使信标光束穿透可选择的方块,即使它们是实心方块!
- StructurePlacerAPI: 一个 API,允许开发者轻松地在世界中放置 NBT 结构,并在之后恢复它们!
- Seedlight Riftways: 一款实验性模组,通过传送门无缝地从世界传送到服务器,反之亦然!
- 还有更多!查看我的 个人主页!
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!
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.

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

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!
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ColoredGlowLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧