Jump to content

Recommended Posts

Posted

Ok, So I'm developing a mod(Obviously) and in this mod I have created an item than, when in hand and the player right clicks, shoots and Ender Pearl. This aspect of it works fine as I just had to override the onRightClick class, but my problem is this: When I throw the sword on the ground and retrieve it when I right click it acts as if I had an ender pearl in my hand and deletes the item(But throws the ender pearl normally). This had been confounding me for a few hours, any help would be appreciated.

 

P.S. I'm not sure how to post the code in a drop down menu as I have seen many times, but if someone wants to see the code I can post it as plain old text. (I started this mod two days ago, and began modding 2 before that)

Posted

Regardless of that fact that I am new at this, I feel moderately stupid. That fixed it perfectly. Have a good day.

Well, you're here to learn and advance, but you could just look at the source in net.minecraft.item package.

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.