Jump to content

Recommended Posts

Posted

I've read several threads about this from older versions of forge but I just can't get this to work. I've tried stopping the animation in the AttackEntityEvent, MouseEvent, and PlayerInteractEvent but none of them seem to be able to stop the animation. I've tried:

 

player.resetActiveHand();
player.swingProgressInt = -1;
player.isSwingInProgress = true;

 

I've even tried canceling the events right when they start but I can't stop that pesky attack animation no matter what I do. I've seen other threads say to override the onSwing method in your mod's item class but I want to cancel the attack animation for vanilla items so I'm absolutely lost. Is there a way to intercept the packet responsible for the attack animation?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.