Started by
Adinot
on
Topic category: Help with MCreator software
Hello, I am creating a mod with animals, and I have added birds and is it possible to change the model of the birds as soon as it starts to fly and as soon as it returns to the ground it resumes the basic model ?
I don't know a way to change models, but I know how to change model animations depending on the situation, although it requires messing with the code a little.
I managed to do this to make my raptor creature open its mouth and rear back whenever it is not on ground.
If you care to read through, take a look at http://jabelarminecraft.blogspot.com/p/minecraft-forge-1721710-creating.html . Otherwise, here's the short version:
See the part of the code with the void setRotationAngles, where you manage the creature's animations
With "e" standing for my entity, I can make checks like
There are other parameters you can check like inLava, inWater, dimension, getEquipment, getFireTimer etc you can mess with!
Thank you very much for your help ^^*
thank you for explaining this