Jump to content

[1.10.2] Swapping left and right click when holding a bow


HandHunter

Recommended Posts

What I need is for left click to shoot bow instead of right click.

 

I've been trying to figure this out since yesterday, been at it for a couple hours with no progress.

 

What I managed to find out is that the mouse class is static, meaning I can't stop the packet and change it to the other key.

The next logical place is to change where it's processed, which is the problem.

 

I've done it before in the main Tick() function by checking ID of the held item and making left click do right click action and vise versa.

 

With "done it before" I meant I did it a long time ago, but it was with MCP, however, I managed to get it working with forge once, through MCP.

Problem was, when the forge version changed everything broke.

Link to comment
Share on other sites

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.