Started by
niceguyian
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
Doesn't the procedure you linked make the mob damage you twice?
(Once for the mobs normal attack and then once more for the procedure's damage)
@friyes: Oh yeah, you're right, but how can I sync it up anyway. This procedure does not make any sense for me...
Does it actually wait 21 ticks before the second attack?
Didn't you write it?
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
Huh? So if you attack it twice it will take damage only one more time?
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.