Jump to content

How would I go about creating new horse armor?


Nieue

Recommended Posts

Hello, as you can see in the title I'd like to know how I would go about creating a custom horse armor type.

I've checked in the code, but Mojang 'hid' the horse armor in fields. And I don't know how to work out stuff with those.

Has anybody found a way to create a custom horse armor yet? If so, how do you do it?

Link to comment
Share on other sites

what's a PR, if I may ask?

PullRequest. But if you don't know that I doubt that you have enough knowledge about this stuff to submit a PR that is good enough to be accepted. Nothing against you, just my observation.

That's probably right, couldn't you send one? That way it's more professional

Link to comment
Share on other sites

  • 2 weeks later...

Hello, as you can see in the title I'd like to know how I would go about creating a custom horse armor type.

I've checked in the code, but Mojang 'hid' the horse armor in fields. And I don't know how to work out stuff with those.

Has anybody found a way to create a custom horse armor yet? If so, how do you do it?

In 1.6.2, the only way i see is to make a custom horse entity with a custom inventory.

That is because there isn't an ItemHorseArmor.

Link to comment
Share on other sites

there's 3 different items that are declared as horse armor:

Item.field_111215_ce (iron)

Item.field_111216_cf (gold)

Item.field_111213_cg (diamond)

 

now the problem is, the way the horse figures out what items are counted as horse armor is in the actual entity class:

    public int func_110260_d(ItemStack par1ItemStack)
    {
        return par1ItemStack == null ? 0 : (par1ItemStack.itemID == Item.field_111215_ce.itemID ? 1 : (par1ItemStack.itemID == Item.field_111216_cf.itemID ? 2 : (par1ItemStack.itemID == Item.field_111213_cg.itemID ? 3 : 0)));
    }

 

so that leaves us with only 2 ways of adding custom horse armor:

1) screw it and just make a coremod and edit base class files, or

2) make a new entity that copies horses, but changes what items are its armor, and disable vanilla horses, that way no base class edits are done, however, it could still cause problems!

 

it's up to you what you do! :P

 

-sorash67 || Skorpio

Link to comment
Share on other sites

there's 3 different items that are declared as horse armor:

Item.field_111215_ce (iron)

Item.field_111216_cf (gold)

Item.field_111213_cg (diamond)

 

now the problem is, the way the horse figures out what items are counted as horse armor is in the actual entity class:

    public int func_110260_d(ItemStack par1ItemStack)
    {
        return par1ItemStack == null ? 0 : (par1ItemStack.itemID == Item.field_111215_ce.itemID ? 1 : (par1ItemStack.itemID == Item.field_111216_cf.itemID ? 2 : (par1ItemStack.itemID == Item.field_111213_cg.itemID ? 3 : 0)));
    }

 

so that leaves us with only 2 ways of adding custom horse armor:

1) screw it and just make a coremod and edit base class files, or

2) make a new entity that copies horses, but changes what items are its armor, and disable vanilla horses, that way no base class edits are done, however, it could still cause problems!

 

it's up to you what you do! :P

 

-sorash67 || Skorpio

I'd rather wait for when it is possiblein a way like normal armor is :P

Link to comment
Share on other sites

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.