Posted August 10, 20214 yr 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 August 13, 20214 yr by Magistu solved
August 13, 20214 yr Author 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; } }); }
January 10, 20223 yr 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.