Jump to content

Recommended Posts

Posted (edited)

Hello,
I have the .java models for all armor parts but I don't understand how to insert it within my mod considering getArmorModel() method doesn't exist in Item class on 1.17 version.

Edited by Magistu
solved
  • Magistu changed the title to [1.17] [SOLVED] Custom Armor Model
Posted

it works!

    @Override 
    public void initializeClient(java.util.function.Consumer<net.minecraftforge.client.IItemRenderProperties> consumer)
    {
        consumer.accept(new IItemRenderProperties()
        {
            @Override
            public <A extends HumanoidModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, A _default) 
            {
                return KnightlyArmory.PROXY instanceof ClientProxy ? ((ClientProxy) KnightlyArmory.PROXY).getKnightModel(armorSlot) : null;
            }
        });
    }

  • 3 months later...
  • 1 month later...
Posted

I second Avadem's comment. I have copy-pasted the code generated by Blockbench in Minecraft, but I can't use it the same way you use your KnightlyArmory class. Could you please let us know what you have there?

Thank you! :)

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.