Help synchronize animations with normal attack

Started by niceguyian on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help synchronize animations with normal attack

Hello!

I feel like I have read every post, watched every video, and tried everything to get my attack animation to actually sync with the damage my custom mob does. (I created it using Geckolib) I have linked my "If attacked" procedure right here, I really need some support on this one because I have been trying for weeks with all these tutorials and posts online but nothing works.

https://imgur.com/a/fEkntvV

I'm using MCreator 2024.2 and the mod version is 1.20.1.

Here some more info on the animation and what happens when:

damage dealt/impact animation: 0.75 second = 15 ticks
total animation length: 1.5 seconds = 30 ticks

Thanks for any replies.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Doesn't the procedure you…
Fri, 10/04/2024 - 21:06

Doesn't the procedure you linked make the mob damage you twice?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Once for the mobs normal…
Fri, 10/04/2024 - 21:07

(Once for the mobs normal attack and then once more for the procedure's damage)

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@friyes: Oh yeah, you're…
Sat, 10/05/2024 - 08:50

@friyes: Oh yeah, you're right, but how can I sync it up anyway. This procedure does not make any sense for me...

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does it actually wait 21…
Sat, 10/05/2024 - 12:54

Does it actually wait 21 ticks before the second attack?
 

 

This procedure does not make any sense for me...

Didn't you write it?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It does after two attacks…
Sat, 10/05/2024 - 14:03

It does after two attacks and no, I got the procedure from another post on the forum. I followed another tutorial and found this procedure to work the best, but still not perfect tho.

https://imgur.com/a/44hbfDm

 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Huh? So if you attack it…
Sun, 10/06/2024 - 14:31

Huh? So if you attack it twice it will take damage only one more time?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had a problem where it…
Sun, 10/06/2024 - 15:05

I had a problem where it played the animation and then attacked me twice, one hit right after another. Then I changed something, and it attacked me constant even tho I had a wait procedure active. Now, with the last image I shared, I think it's more or less fixed.