Started by
JiarxAndPickleShow
on
Topic category: Help with Minecraft modding (Java Edition)
So basically, I'm making a Five Nights at Freddy's Mod, (Called Pickle's FNAF if you want to check it out after release) And I have a FNAF Into The Pit update for this mod, and in ITP, Bonnie's eyes change color, green in walking/running/idle, and Red when he attacks you, So I want to know if it's possible to make a texture swap when the player is spotted and being chased by the entity (Also I use Geckolib models, so it would need to work in that, and not living entities) If you know how to do this and have sent help, thanks, if you have read the post, thank you for your time to read this.
I'm actually a bit new at this, but you could use Kleider's Custom Renderer plugin, or what I do for some blocks, define all the eyes in the model and inside the animations set the scale to 1 or 0 depending if they should be shown or not.
There is a set texture procedure in the geckolib procedures, not that ive had much luck with them working. But give it a try. For the trigger I assume you know how to activate it based on mob aggression etc whatever you want to do.
Roth_Sterial is correct with the scaling a small eye model inside the models head but I dont think you need the plugin you can just make an aggression animation. That way if the mob, bonnie, sees the player and aggros to them its animation will change and it will run or whatever the animation you make with the red eyes.