Drachenbauer Posted January 25, 2020 Posted January 25, 2020 Hello in 1.14.3 i had this in my models? public void render(BluesEntity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) { bone.render(scale); } it tells the model to wich bodyparts it has to render, because they are not child of others. Childs are automaticly rendered with their parents. but now it does not know this method any more. How do i do this now? Quote
Krevik Posted January 25, 2020 Posted January 25, 2020 (edited) 4 minutes ago, Drachenbauer said: Hello in 1.14.3 i had this in my models? public void render(BluesEntity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) { bone.render(scale); } it tells the model to wich bodyparts it has to render, because they are not child of others. Childs are automaticly rendered with their parents. but now it does not know this method any more. How do i do this now? Well I am not exactly sure how does it work but you need these two functions: Spoiler @Override protected Iterable<ModelRenderer> func_225602_a_() { //head/Main parts here . You need this - without it your entity is going to crash minecraft when spawned. I think it's for scaling, but I may be completely wrong. return ImmutableList.of(head); } @Override protected Iterable<ModelRenderer> func_225600_b_() { //All the other parts (without child parts) e.g. return ImmutableList.of(leg1,leg2,body,etc); } Edited January 25, 2020 by Krevik Quote
Drachenbauer Posted January 25, 2020 Author Posted January 25, 2020 I cannot override them, it looks like they are specific for "QuadrupedModel" and my entities don´t extend this. Can i use them without override them? Quote
Krevik Posted January 26, 2020 Posted January 26, 2020 (edited) 12 hours ago, Drachenbauer said: I cannot override them, it looks like they are specific for "QuadrupedModel" and my entities don´t extend this. Can i use them without override them? Ahhh I forgot about this XD No, you must override two iterable functions, just check in the model class that your model is extending what are their names. ZombieModel for e.g. extends BipedModel which has these two iterables: Spoiler protected Iterable<ModelRenderer> getHeadParts() { return ImmutableList.of(this.bipedHead); } protected Iterable<ModelRenderer> getBodyParts() { return ImmutableList.of(this.bipedBody, this.bipedRightArm, this.bipedLeftArm, this.bipedRightLeg, this.bipedLeftLeg, this.bipedHeadwear); } It also depends on your actual mappings, but the point is you need to find these two iterables. Edited January 26, 2020 by Krevik Quote
Recommended Posts
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.