Started by
Paleonerd
on
Topic category: Help with Minecraft modding (Java Edition)
So i wanted to use 2 seperate animations for an entity. One for "Agression" and one for "Sprint." The idea was that there would be a seperate running animation for when the entity flees. But when i test out the animations, the chasing animation works just fine while the running animation doesn't play, simply just playing the walk animation instead. I tried double checking to see if i got the names of the animations right, and i did. I tried checking here in case anyone else had this problem, but nothing. Please help.
Edit: i'm using Geckolib for this. forgot to say.
Edited by Paleonerd on Wed, 09/11/2024 - 23:50
the sprint animation only plays when sprinting is set to true for the entity in a procedure
what procedure
wait nvm i found it
hey a random question related to this, is there a way to stop an entity from running/sprinting?
I tried to get it to work for the past few hours and haven't found a procedure to make it stop playing the running animation and is still in sprinting mode after I attack it. My hope was after running away for a little bit it would stop, but I dont know what procedures I need to do to time it to stop after either x distance from player, or to have it run for x amount of time
Apologies also for randomly jumping into this forum, I just realized y'all may know better than me since I don't usually do this kind of stuff, I primarily do sprites ^^