Started by
dimbywimby
on
Topic category: Help with Minecraft modding (Java Edition)
Hiya! I have a custom entity here and have figured out the idle and walking animations; but when i looked online for resources regarding how to get a jump animation to function properly, i couldnt find anything! Mostly due to imjur being banned in my country, lol. If anyone could help me simply detect when the entity is jumping and set the animation to play during that; id be eternally greatful!
Neoforge 1.21.1 incase anyones curious.
Check for when y delta movement is greater than 0.
There is also a global trigger for when an entity jumps, which may be of some use. You will just need to put everything in an if statement that checks for whether the entity is your custom one, so it won't trigger for literally every other entity when they jump.