Started by
Abnormal_420_69
on
Topic category: Help with MCreator software
The attack animation on my mob only plays the first time it hits me, then it wont play again unless i die and attack it again which resets it's brain i guess, but again it only plays it once, and then further attacks have no animation playing. anyone know why it won't work like in this gif?
And yes, my entity's behavioral characteristic is "Mob" instead of "creature", that's not what's causing the issue. My MCreator version is "2025.3". The procedure is plugged into the playback condition slot in the listing for the attack animation in the entities animations panel. I can provide more info if needed.
You may need to create demo workspace with one mob and one animation that we can use to try this ourselves
i figured out what i was doing to get the bug on my end, turns out since i wanted my mob to be tameable it was overiding my mob type from "Mob" to "animal" which stopped it from playing the animation more than once. unfortunatley this means i cant make the mob the way i wanted without either scrapping the attack animation or making it un-tameable until this has a proper fix. here is my example workspace of this, i made a couple guys before i figured it out so the only ones you need to care about are "jhonny long arms hammer edition BROKEN" and "jhonny long arms hammer edition UNTAMEABLE". also i used the "Minecraft Forge 1.20.1 Generator" add-on. https://mega.nz/folder/aTYAyTKQ#US09pdBUwMgEqlJ6RtCJMw
I found a solution. Since my mob is tameable, I created a synced data boolean called Attack. Then I made a global trigger for when the entity attacks another entity and set that value there. I also made a simple animation condition to check it. The tick duration should match the length of your animation. I couldn't have done this without the help of NorthWestTrees I asked in his discord server and he helped me. Here is his Youtube channel. https://www.youtube.com/@NorthWestTreesMCreator
Btw, when I made a synced data using logic, make sure to translate your animation seconds into Minecraft ticks.
^This worked perfectly for Me! Thank you so much!
I'm glad it worked!