Posted June 20, 201312 yr How do you render a custom entity as a child? This is what I'm currently doing to register the entity RenderingRegistry.registerEntityRenderingHandler(EntityFamilyMember.class, new RenderFamilyMember(new ModelBiped(0.0F), 0.5F)); public class RenderFamilyMember extends RenderBiped { public RenderFamilyMember(ModelBiped par1ModelBiped, float par2) { super(par1ModelBiped, par2); this.setRenderPassModel(this.field_82423_g); } } And here is the isChild code from EntityFamilyMember @Override public boolean isChild() { return this.age < 0; } Looking at the code I thought it was as straightforward as that but it doesn't work. Can anyone help me out? Thanks in advance
June 20, 201312 yr If your render means Model, it is about the EntityModel, you can see the model from the villager or chicken, it will change if it is an child See ya
June 20, 201312 yr Author I don't see anything in the model for the villager or the chicken that isn't already in ModelBiped. Could you be more specific?
June 20, 201312 yr At the ModelChicken. You will see at the method Render that it has a paramter about it beeing a child
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.