Hello, I'm using your GlowLib version 1.0.0 in my mod (https://github.com/fzzyhmstrs/ai/tree/1.18.1), and I can't get the rainbow glowing effect to work. I set the entity to have rainbow color, but it doesn't show up in game.
I did some checking, and the setRainbowColorToEntity
doesn't seem to be setting anything. I checked with getEntityRainbowColor
immediately after setting, and it comes back false. Not sure what I could be doing wrong here. Here's the snippet of code I'm using:
(GlowColorUtil
is my Object)
if (GlowColorUtil.oreIsRainbow(entityBlock)){
ColoredGlowLib.setRainbowColorToEntity(this,true)
println("i'm a ranibow")
println(ColoredGlowLib.getEntityRainbowColor(this)) //this is displaying as false even though I just set it to true two line prior
} else {
val color = GlowColorUtil.oreGlowColor(entityBlock)
ColoredGlowLib.setColorToEntity(this, color)
}
this.addStatusEffect(StatusEffectInstance(StatusEffects.GLOWING, 260))
This is the console output of the two printlns:
And this is what I see in game. You can see that the other visible (and underground) ore blocks are showing various colors. The Ancient Debris, however, is showing as plain white instead of the desired rainbow. It is properly identifying as needing a rainbow via oreIsRainbow
.
I even mixed in to your code and println'ed my own entitytype_rainbow_list.contains(entity.getUuid())
, and that came back TRUE, which is a very fascinating outcome. I do not know how I can get a different result at the head of the getEntityRainbowColor
method compared to at the return statement!