Gecklib attack animation not syncing with damage

Started by Sharpblade1 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gecklib attack animation not syncing with damage

In using the geckolib plugin, I’ve noticed that when a mob with an attack animation attacks you, the player is damaged and then, the animation plays. In the mod “Call of Yucatah” created by “Sweetygamer2” they seemed to be able to use attack animations, and they work properly.

So is there anything you can suggest, for a solution to this problem of damage and then animation.

Thank you

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Smart. Well thank for all…
Sat, 07/20/2024 - 20:39

Smart. Well thank for all your great work and help. gtg

 

Have a good rest of your day!

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome, have a great…
Sat, 07/20/2024 - 20:44

You're welcome, have a great day too

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey! I may be a little late…
Thu, 05/29/2025 - 21:16

Hey! I may be a little late to this thread, but I'd like to know where you're running this procedure?

I first thought about On Entity Tick Update, but it tells me “missing dependencies” because of the “Source entity.” >.<

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's on entity attacked 
Fri, 05/30/2025 - 20:31

It's on entity attacked 

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello Cico25 if the…
Tue, 06/03/2025 - 20:53

Hello Cico25 if the procedure mentioned here works for you that's great. If not, then I have found a different way of working around the attack delay.

You have procedure on entity tick update that "if entity <player> is distance <>" then "play animation <>" for this to work right you must make sure that when that animation plays is right before where that entity can damage that player.

Also the duration of the animation is not to short otherwise it may play twice.

Hope this was helpful.