Gecklib attack animation not syncing with damage

Started by Sharpblade1 on

Topic category: Troubleshooting, bugs, and solutions

Active 3 days ago
Joined Jul 2024
Points:
120

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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

Active 3 days ago
Joined Jul 2024
Points:
120

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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!

Active 1 day ago
Joined Apr 2024
Points:
406

User statistics:

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

You're welcome, have a great day too

Active 2 months ago
Joined May 2025
Points:
10

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.” >.<

Active 1 day ago
Joined Apr 2024
Points:
406

User statistics:

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

It's on entity attacked 

Active 3 days ago
Joined Jul 2024
Points:
120

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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.