Jump to content

Recommended Posts

Posted

Hi bros,

 

 

 

I created a new bow and a new arrow. The item works perfectly etc. But when I'm using my arrow, this one spawn on me.

+ My bow is using my arrows, but it need to have at least 1 minecraft arrow in the Inventory.

 

My Bow class:

 

  Reveal hidden contents

 

 

EntityTitaniteArrow:

 

 

  Reveal hidden contents

 

Posted

What is your question? It's not clear from your post what exactly isn't working as intended.

 

Also, as others have pointed out, you would benefit greatly from learning more about Java - in this casae specifically, I'd recommend learning about inheritance. Then you'll understand why it doesn't make any sense to 'extend EntityArrow' and the copy the entire contents of EntityArrow into your class.

Posted

If you know why you should extend a class, then you should know why you would get rid of 90% of that code and replace it with calls to super or not override the method at all.

 

If the arrow is spawning on you, that is a problem with how you create and initialize the entity instance, either in your constructor(s) or in the code that spawns the entity.

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.