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.
I managed to do it by overriding the "doHurtTarget" method.
@Override
public boolean doHurtTarget(Entity target) {
this.swing(InteractionHand.MAIN_HAND);
return super.doHurtTarget(target);
}
Recommended Posts
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.