#model tears itself apart when attack animation plays [Solved]

8 messages · Page 1 of 1 (latest)

white sphinx
#

So basically, whenever the attack animation of my entity plays, the model rips itself apart and that for all instances of the mob in my world. I have never had this and I do not know how to describe it properly, so I will upload some clips.

neon kindleBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

white sphinx
white sphinx
#

I already tried reexporting the animation and the model multiple times

white sphinx
#

It looks like the animation isn't returning to its original state

white sphinx
#

I solved it, it was a code issue. In the Model file in here: ```java
@Override
public void setupAnim(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) {
this.root().getAllParts().forEach(ModelPart::resetPose);
this.applyTailRotation(pEntity, pAgeInTicks);
this.animate(((XanaranhaEntity) pEntity).attackAnimationState, ModFishAnimations.XANARANHA_ATTACK, pAgeInTicks, 1f);

}
I had forgotten the ```java
this.root().getAllParts().forEach(ModelPart::resetPose);