#model tears itself apart when attack animation plays [Solved]
8 messages · Page 1 of 1 (latest)
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.
I already tried reexporting the animation and the model multiple times
It looks like the animation isn't returning to its original state
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);
Also here is the full model file incase that helps anyone