Animated entity won't play sprint animation

Started by Paleonerd on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Animated entity won't play sprint animation
Wed, 09/11/2024 - 23:50 (edited)

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
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the sprint animation only…
Thu, 09/12/2024 - 18:07

the sprint animation only plays when sprinting is set to true for the entity in a procedure

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what procedure
Thu, 09/12/2024 - 20:53

what procedure

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait nvm i found it
Thu, 09/12/2024 - 20:54

wait nvm i found it

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hey a random question…
Sun, 11/03/2024 - 18:36

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 ^^