Switching the "glowing" texture on/off

Started by Deepu on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Switching the "glowing" texture on/off

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.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I truly do understand…
Thu, 12/26/2024 - 01:16

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:

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I hope I shared the picture…
Thu, 12/26/2024 - 01:18

I hope I shared the picture correctly!