Topic category: Help with Minecraft modding (Java Edition)
I am making a creature where it has no eyes, and when the player gets a potion effect, every type of that creature gets eyes that glow. I accomplished this by using Geckolib to change the texture, but I would like for it to glow. And I don't mean in a way where I create an invisible glowing block under (which I've tried, it's really glitchy and gives undesired results).
Let's say I gave the entity a glowing texture, is there a way to switch this on/off throughout a condition check for each tick of the entity?
I'm not very experienced when it comes to coding it in manually (the only languages I know are typescript+javascript and python) but I'm willing to do so if there would be any help, thanks!
I did find the source for the glowing part of the texture (from the Layer.java file that's connected to the entity element), within private static final ResourceLocation LAYER = new ResourceLocation("abyssal_sovereigns", "textures/entities/fleshhoundeyess.png");
. I just don't know what to do with it/how to connect it to a condition.
If I truly do understand what you're asking, do this:
Go to the Model Layers, and make a layer with your glowing eyes. For that layer, make a condition and put this in there:
I hope I shared the picture correctly!
As Ghtrefg said, you need to use a condition for this