Jump to content

Recommended Posts

Posted

Hello I am trying to create an armor that changes colors based on surroundings (currently coded as the block your character is standing on).

 

The problem I have is the ItemArmor class function getColor(itemstack)

 

has an if that only allows CLOTH (leather armor) to pass the color value.

Both RenderBiped and RenderPlayer classes call this function.

 

What is the best way to work around this issue without editing base files?

 

 

Posted

I overrided it in my armor class, but the render function continued to call ItemArmor's getColor function.

edit: I found out this is working. The reason I didn't notice it is the item in inventory rendered black instead of the armor model rendering black. If anyone has any ideas for that I would be glad to hear them. I'm currently investigating it still.

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.