#[SOLVED] How do I make armor trims pulse-glow (and pulse-change color)?

2 messages · Page 1 of 1 (latest)

steady ice
#

I'm trying to make a mod (1.20.1) that makes so the armor trims have a special nbt making them glow (have emissive texture) and not glow in equal intervals of time and smoothly move between these states (just as if the glow amount was changing like a sine function, for example). Once I would achieve that I would also want to do that with materials (so, for example, smoothly change colors from gold material to diamond one and so on).

What I tried already:

I tried to change alpha parameter in model.render function, but it seems so the RenderLayer of armor trims aren't translucent (so it only takes alpha value of 1.0 and 0.0). I tried changing render layers to others, but it seems so with every other layer it renders below the armor for some reason. Then I tried making the layer translucent by changing its value in static constructor, but that requires mixin in lambda function or in private inner class' setter function (which would require specifying inner class' type, which you can't do), neither am I able to do with my current skills :(
I also tried just changing the light value, but it works weird underground.

Any ideas how could I do this?

steady ice
#

nvm, I did it