Started by
MamaLuigi
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a mod that adds a mob where it has horns as an adult, but not as a baby, and the adult version of the mob can have 4 different textures, like a horse.
How would i do this without spawning a mob with the new model/texture and killing the old one?
Edited by MamaLuigi on Wed, 08/30/2023 - 19:13
I’m not completely sure but I do believe custom code is needed.
This is actually not hard to do! First I recommend you use Nerdy's Geckolib Plugin as it requires no advance coding to change the mob texture only procedure/procedures.
step 1. make the model with two textures. One with texture on the horns and the other with no texture on the horns. https://imgur.com/a/HjNIXzW
step 2. make sure your entity is animated and make a procedure that looks like this. https://imgur.com/a/S80pty5
step 3. Once you made the procedure place it here. https://imgur.com/a/453H9xp
step 4. give it a try it should now work.
If you get stuck and need more help on understanding how to use Nerdy's Geckolib on both Mcreator and Blockbench here's a tutorial: (9) How to make Animated Mobs in MCreator! | Geckolib 2023 [No help in comments] - YouTube