Jump to content

Recommended Posts

Posted

So, I've made a custom mob and I'm wanting it to hold a custom weapon but it's not working

either it's not holding the weapon as it should or the weapon isn't rendering

 

This is my entity file

 

  Reveal hidden contents

 

 

and my entity render file

 

  Reveal hidden contents

 

 

Any ideas at all why it isn't working?

Posted

Okay, the weapon drops from the mob I've given it to

 

But the mob doesn't appear to be holding it, nor is the effect the weapon is supposed to have working (which I can get around)

 

So, it basically only has it as a random drop

Posted
  On 6/15/2013 at 11:11 AM, AndrewSherman said:

do you have to do

this.captureDrops=true;

in the constructor?

 

No, you have to override getHeldItem() in your entity class and return your item that's supposed to be held.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

  • 2 weeks 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.

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.