Jump to content

[1.7.10]Item left click actions?


Recommended Posts

I've been trying tons of things, but nothing works as I wan't it to. That is:


-you can left click in the air

-it has to keep repeating as long as left mouse button is down

-it needs to work at a good speed (not too much time between checking wether left clicking or not).


Please help me and keep in mind that I'm not too good in coding so...


Sorry for my english and sorry if I somehow insulted you :)







Link to comment
Share on other sites

Use a tick handler or look into this.

As for the link you gave, the only thing i can find is RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_BLOCK, i need LEFT_CLICK_AIR, which doesn't exist.

Next, the tick handler, if i want ti to check keys, it needs to be client side, but entity spawning is server side (correct?). Also, how do I only let it check if i click if I'm not in the menu or looking in my inventory or containers or stuff like that?

Link to comment
Share on other sites

  • 10 months later...

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.

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.

  • Create New...

Important Information

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