Jump to content

Recommended Posts

Posted

All i want is for my entity to always spawn with armor. Tried addRandomArmor but doesnt work.

 

Entity class:

 

  Reveal hidden contents

 

Posted

You could just set the armor in the Constructor, instead of the random method. (Might work might not, might be a better way. Correct me if I;m wrong.)

I require Java, both the coffee and the code :)

Posted
  On 2/10/2015 at 7:55 AM, Belpois said:

You could just set the armor in the Constructor, instead of the random method. (Might work might not, might be a better way. Correct me if I;m wrong.)

Tried that but didnt work :( but here is something I found... I make the entity drop a leather chestplate on death but it sometimes drops 2, which means that it is dropping its "worn" armor aswell. So it seems that the entity HAS armor on but I can't see it. I will try adding diamond armor to it to see if it gets more stronger. Must be some rendering issue though...

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.