Topic category: Troubleshooting, bugs, and solutions
I have made a dinosaur model with blockbench, but when I try to import the model I get an error: your model name is not a valid java name, custom mob model names can not contain white spaces, start with number or contain any ASCII letters; Model name is not file name, but the name inside the model java code(model class name)!
Yet I can't find white spaces or numbers. I have also looked at other forum topics about blockbench errors but haven't found a solution. Recently another model didn't work because it had rotated parts. This model doesn't have any and it still fails. This is the model code:
//Made with Blockbench
//Paste this code into your mod.
import org.lwjgl.opengl.GL11;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;
public class extends ModelBase {
private final ModelRenderer neck;
private final ModelRenderer necktwo;
private final ModelRenderer Body;
private final ModelRenderer main_body;
private final ModelRenderer upper_body;
private final ModelRenderer Taild;
private final ModelRenderer tail;
private final ModelRenderer tailtwo;
private final ModelRenderer tailthree;
private final ModelRenderer left_leg;
private final ModelRenderer left_legTop;
private final ModelRenderer left_leg_middle;
private final ModelRenderer left_foot;
private final ModelRenderer right_leg;
private final ModelRenderer right_legTop;
private final ModelRenderer right_foot;
private final ModelRenderer right_leg_middle;
private final ModelRenderer head;
private final ModelRenderer upper_head;
private final ModelRenderer jaw;
private final ModelRenderer right_arm;
private final ModelRenderer upper;
private final ModelRenderer lower;
private final ModelRenderer hand;
private final ModelRenderer left_arm;
private final ModelRenderer uppertwo;
private final ModelRenderer lowertwo;
private final ModelRenderer handtwo;
public () {
textureWidth = 144;
textureHeight = 144;
neck = new ModelRenderer(this);
neck.setRotationPoint(0.0F, 24.0F, 0.0F);
neck.cubeList.add(new ModelBox(neck, 94, 0, -5.0F, -38.0F, -39.0F, 10, 8, 11, 0.0F, false));
necktwo = new ModelRenderer(this);
necktwo.setRotationPoint(0.0F, 0.0F, 0.0F);
neck.addChild(necktwo);
necktwo.cubeList.add(new ModelBox(necktwo, 86, 45, -5.0F, -44.0F, -44.0F, 10, 8, 11, 0.0F, false));
Body = new ModelRenderer(this);
Body.setRotationPoint(0.0F, 24.0F, 0.0F);
main_body = new ModelRenderer(this);
main_body.setRotationPoint(0.0F, 0.0F, 0.0F);
Body.addChild(main_body);
main_body.cubeList.add(new ModelBox(main_body, 0, 0, -9.0F, -29.0F, -20.0F, 18, 16, 21, 0.0F, false));
upper_body = new ModelRenderer(this);
upper_body.setRotationPoint(0.0F, 0.0F, 0.0F);
Body.addChild(upper_body);
upper_body.cubeList.add(new ModelBox(upper_body, 0, 37, -8.0F, -32.0F, -36.0F, 16, 16, 17, 0.0F, false));
Taild = new ModelRenderer(this);
Taild.setRotationPoint(0.0F, 24.0F, 0.0F);
tail = new ModelRenderer(this);
tail.setRotationPoint(0.0F, 0.0F, 0.0F);
Taild.addChild(tail);
tail.cubeList.add(new ModelBox(tail, 0, 70, -6.0F, -28.0F, 1.0F, 12, 12, 17, 0.0F, false));
tailtwo = new ModelRenderer(this);
tailtwo.setRotationPoint(0.0F, 0.0F, 0.0F);
tail.addChild(tailtwo);
tailtwo.cubeList.add(new ModelBox(tailtwo, 44, 48, -5.0F, -27.0F, 8.0F, 10, 10, 22, 0.0F, false));
tailthree = new ModelRenderer(this);
tailthree.setRotationPoint(0.0F, 0.0F, 0.0F);
tail.addChild(tailthree);
tailthree.cubeList.add(new ModelBox(tailthree, 56, 15, -4.0F, -26.0F, 23.0F, 8, 8, 22, 0.0F, false));
left_leg = new ModelRenderer(this);
left_leg.setRotationPoint(0.0F, 24.0F, 0.0F);
left_legTop = new ModelRenderer(this);
left_legTop.setRotationPoint(0.0F, 0.0F, 0.0F);
left_leg.addChild(left_legTop);
left_legTop.cubeList.add(new ModelBox(left_legTop, 0, 99, -13.0F, -30.0F, -6.0F, 5, 17, 8, 0.0F, false));
left_leg_middle = new ModelRenderer(this);
left_leg_middle.setRotationPoint(0.0F, 0.0F, 0.0F);
left_leg.addChild(left_leg_middle);
left_leg_middle.cubeList.add(new ModelBox(left_leg_middle, 0, 0, -12.0F, -14.0F, -5.0F, 4, 12, 6, 0.0F, false));
left_foot = new ModelRenderer(this);
left_foot.setRotationPoint(0.0F, 0.0F, 0.0F);
left_leg.addChild(left_foot);
left_foot.cubeList.add(new ModelBox(left_foot, 57, 0, -13.0F, -3.0F, -9.0F, 6, 3, 12, 0.0F, false));
right_leg = new ModelRenderer(this);
right_leg.setRotationPoint(0.0F, 24.0F, 0.0F);
right_legTop = new ModelRenderer(this);
right_legTop.setRotationPoint(0.0F, 0.0F, 0.0F);
right_leg.addChild(right_legTop);
right_legTop.cubeList.add(new ModelBox(right_legTop, 26, 102, 8.0F, -30.0F, -6.0F, 5, 17, 8, 0.0F, false));
right_foot = new ModelRenderer(this);
right_foot.setRotationPoint(0.0F, 0.0F, 0.0F);
right_leg.addChild(right_foot);
right_foot.cubeList.add(new ModelBox(right_foot, 96, 68, 7.0F, -3.0F, -9.0F, 6, 3, 12, 0.0F, false));
right_leg_middle = new ModelRenderer(this);
right_leg_middle.setRotationPoint(0.0F, 0.0F, 0.0F);
right_leg.addChild(right_leg_middle);
right_leg_middle.cubeList.add(new ModelBox(right_leg_middle, 52, 102, 8.0F, -14.0F, -5.0F, 4, 12, 6, 0.0F, false));
head = new ModelRenderer(this);
head.setRotationPoint(0.0F, 24.0F, 0.0F);
upper_head = new ModelRenderer(this);
upper_head.setRotationPoint(0.0F, 0.0F, 0.0F);
head.addChild(upper_head);
upper_head.cubeList.add(new ModelBox(upper_head, 85, 86, -6.0F, -53.0F, -54.0F, 12, 10, 16, 0.0F, false));
upper_head.cubeList.add(new ModelBox(upper_head, 94, 19, -5.0F, -51.0F, -63.0F, 10, 8, 9, 0.0F, false));
jaw = new ModelRenderer(this);
jaw.setRotationPoint(0.0F, 0.0F, 0.0F);
head.addChild(jaw);
jaw.cubeList.add(new ModelBox(jaw, 39, 80, -6.0F, -42.0F, -63.0F, 12, 3, 19, 0.0F, false));
right_arm = new ModelRenderer(this);
right_arm.setRotationPoint(0.0F, 27.0F, -1.0F);
upper = new ModelRenderer(this);
upper.setRotationPoint(0.0F, 0.0F, 0.0F);
right_arm.addChild(upper);
upper.cubeList.add(new ModelBox(upper, 92, 112, 7.0F, -31.0F, -33.0F, 5, 11, 5, 0.0F, false));
lower = new ModelRenderer(this);
lower.setRotationPoint(0.0F, 0.0F, 0.0F);
right_arm.addChild(lower);
lower.cubeList.add(new ModelBox(lower, 0, 70, 8.0F, -20.0F, -32.0F, 3, 7, 3, 0.0F, false));
hand = new ModelRenderer(this);
hand.setRotationPoint(0.0F, 0.0F, 0.0F);
right_arm.addChild(hand);
hand.cubeList.add(new ModelBox(hand, 0, 44, 8.0F, -13.0F, -33.0F, 3, 2, 5, 0.0F, false));
left_arm = new ModelRenderer(this);
left_arm.setRotationPoint(-19.0F, 27.0F, -1.0F);
uppertwo = new ModelRenderer(this);
uppertwo.setRotationPoint(0.0F, 0.0F, 0.0F);
left_arm.addChild(uppertwo);
uppertwo.cubeList.add(new ModelBox(uppertwo, 72, 112, 7.0F, -31.0F, -33.0F, 5, 11, 5, 0.0F, false));
lowertwo = new ModelRenderer(this);
lowertwo.setRotationPoint(0.0F, 0.0F, 0.0F);
left_arm.addChild(lowertwo);
lowertwo.cubeList.add(new ModelBox(lowertwo, 57, 0, 8.0F, -21.0F, -32.0F, 3, 7, 3, 0.0F, false));
handtwo = new ModelRenderer(this);
handtwo.setRotationPoint(0.0F, 0.0F, 0.0F);
left_arm.addChild(handtwo);
handtwo.cubeList.add(new ModelBox(handtwo, 0, 37, 8.0F, -14.0F, -33.0F, 3, 2, 5, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
neck.render(f5);
Body.render(f5);
Taild.render(f5);
left_leg.render(f5);
right_leg.render(f5);
head.render(f5);
right_arm.render(f5);
left_arm.render(f5);
}
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
I would like to hear the solution if anyone has one.
public class extends ModelBase {
Between class and extends should be your mob name
I now have public class allosaurus extends ModelBase {
but then I get another error: Your model is not a valid java model! make sure that all model parts have a valid java name and that your model is in fact java model with a valid syntax
any clue what other problem there is?
Under the properties settings in blockbench for your model fix the naming of your model.
If you want / need to fix it by hand.
public class ModelNameHere extends ModelBase {
public ModelNameHere() {
Thank you!!!!! It works now :)
what the folder i have to put?
HELP PLZ
I am having the same problem as ThorPDough. Whenever I try to import a Java 3D model, it says:
Your model is not a valid Java name!
Custom mob model names cannot contain whitespace, start with number or contain any non ASCII letters
Model name is not filename, but the name inside the model Java code (model class name)!
I am pretty sure that the name I am using for this model is valid, but for some reason it says it is not. I have made a test mob model, and have pasted the code below:
// Made with Blockbench 3.5.2
// Exported for Minecraft version 1.12
// Paste this class into your mod and generate all required imports
public class testmodel extends ModelBase {
private final ModelRenderer body;
private final ModelRenderer legs;
private final ModelRenderer head;
public testmodel() {
textureWidth = 64;
textureHeight = 64;
body = new ModelRenderer(this);
body.setRotationPoint(0.0F, 24.0F, 0.0F);
body.cubeList.add(new ModelBox(body, 0, 0, -4.0F, -24.0F, -2.0F, 8, 12, 4, 0.0F, false));
body.cubeList.add(new ModelBox(body, 16, 16, 4.0F, -24.0F, -2.0F, 3, 12, 4, 0.0F, false));
body.cubeList.add(new ModelBox(body, 16, 16, -7.0F, -24.0F, -2.0F, 3, 12, 4, 0.0F, false));
legs = new ModelRenderer(this);
legs.setRotationPoint(0.0F, 24.0F, 0.0F);
legs.cubeList.add(new ModelBox(legs, 0, 16, 0.0F, -12.0F, -2.0F, 4, 12, 4, 0.0F, false));
legs.cubeList.add(new ModelBox(legs, 0, 16, -4.0F, -12.0F, -2.0F, 4, 12, 4, 0.0F, false));
head = new ModelRenderer(this);
head.setRotationPoint(0.0F, 24.0F, 0.0F);
head.cubeList.add(new ModelBox(head, 24, 0, -3.0F, -30.0F, -3.0F, 6, 7, 6, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
body.render(f5);
legs.render(f5);
head.render(f5);
}
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
Does anyone have a solution to this? It would be much appreciated.
I don't know if you fixed it, but it helped me when I removed it:
// Made with Blockbench 3.5.2
// Exported for Minecraft version 1.12
// Paste this class into your mod and generate all required imports
okay i am totally lost if someone could please respond to my message so we can get in contact so they can walk me through this
nvm
Thank you for your suggestion, heydesShot! I tried your idea, though the model code skips over those lines anyway, so it didn't make any difference. I don't have any idea why this is not working, so if anybody else has anymore thoughts, please tell me!
I'm having the same problem. It just says Invalid Model Java though.
Code:
Can someone please help me.
so then what about tabula cause i have the names all rignt but still get the first error and this is with converting and older model into the new 1.15.2 tabula and ajusted it but still get the error
package my.first.mod.model;
import com.google.common.collect.ImmutableList;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.client.renderer.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
/**
* Paleo_Anomalocaris - Undefined
* Created using Tabula 8.0.0
*/
@OnlyIn(Dist.CLIENT)
public class Paleo_Anomalocaris<T extends Entity> extends EntityModel<T> {
public ModelRenderer body;
public ModelRenderer neck;
public ModelRenderer body2;
public ModelRenderer wing_L1;
public ModelRenderer wing_L2;
public ModelRenderer wing_R1;
public ModelRenderer wing_R2;
public ModelRenderer head;
public ModelRenderer eyesR;
public ModelRenderer eyesL;
public ModelRenderer joint_1;
public ModelRenderer joint_2;
public ModelRenderer shape7R;
public ModelRenderer shape7L;
public ModelRenderer claw_thing_1;
public ModelRenderer armL1;
public ModelRenderer ArmL2;
public ModelRenderer ArmL3;
public ModelRenderer claw_thing_2;
public ModelRenderer armR1;
public ModelRenderer ArmR2;
public ModelRenderer ArmR3;
public ModelRenderer body3;
public ModelRenderer wing_L3;
public ModelRenderer wing_L4;
public ModelRenderer wing_R3;
public ModelRenderer wing_R4;
public ModelRenderer shape1;
public ModelRenderer wing_L5;
public ModelRenderer wing_L6;
public ModelRenderer wing_R5;
public ModelRenderer wing_R6;
public ModelRenderer tail_wing_R1;
public ModelRenderer tail_wing_R2;
public ModelRenderer tail_wing_R3;
public ModelRenderer tail_wing_L1;
public ModelRenderer tail_wing_L2;
public ModelRenderer tail_wing_L3;
public ModelRenderer wing_L7;
public ModelRenderer wing_R7;
public Paleo_Anomalocaris() {
this.textureWidth = 64;
this.textureHeight = 64;
this.tail_wing_R1 = new ModelRenderer(this, 0, 2);
this.tail_wing_R1.setRotationPoint(-1.6F, -0.2F, 4.0F);
this.tail_wing_R1.addBox(0.0F, 0.0F, -1.0F, 0.0F, 5.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(tail_wing_R1, 2.4130921279335604F, -0.18203784630933073F, -0.4098033003787853F);
this.joint_2 = new ModelRenderer(this, 6, 0);
this.joint_2.setRotationPoint(-1.2F, 0.4F, -3.0F);
this.joint_2.addBox(-0.5F, -0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.wing_R4 = new ModelRenderer(this, -1, 18);
this.wing_R4.mirror = true;
this.wing_R4.setRotationPoint(-2.5F, 0.5F, 3.0F);
this.wing_R4.addBox(-7.0F, 0.0F, -1.5F, 7.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.head = new ModelRenderer(this, 40, 9);
this.head.setRotationPoint(0.0F, 0.0F, -4.7F);
this.head.addBox(-2.5F, -1.0F, -4.0F, 5.0F, 2.0F, 4.0F, 0.0F, 0.0F, 0.0F);
this.claw_thing_2 = new ModelRenderer(this, 6, 0);
this.claw_thing_2.setRotationPoint(0.0F, 0.0F, -0.8F);
this.claw_thing_2.addBox(-0.5F, -0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(claw_thing_2, 0.6829473549475088F, 0.0F, 0.0F);
this.wing_L3 = new ModelRenderer(this, 0, 18);
this.wing_L3.setRotationPoint(2.5F, 0.5F, 1.0F);
this.wing_L3.addBox(0.0F, 0.0F, -1.5F, 6.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.tail_wing_L1 = new ModelRenderer(this, 0, 2);
this.tail_wing_L1.setRotationPoint(1.4F, -0.2F, 4.0F);
this.tail_wing_L1.addBox(0.0F, 0.0F, -1.0F, 0.0F, 5.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(tail_wing_L1, 2.4130921279335604F, 0.18203784630933073F, 0.591841146688116F);
this.ArmL2 = new ModelRenderer(this, 10, 0);
this.ArmL2.mirror = true;
this.ArmL2.setRotationPoint(-0.1F, 1.5F, -0.2F);
this.ArmL2.addBox(-0.5F, 0.0F, -0.5F, 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(ArmL2, 0.7853981633974483F, 0.0F, 0.0F);
this.wing_L6 = new ModelRenderer(this, 1, 18);
this.wing_L6.setRotationPoint(2.5F, 0.0F, 3.5F);
this.wing_L6.addBox(0.0F, 0.0F, -1.5F, 5.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.neck = new ModelRenderer(this, 26, 0);
this.neck.mirror = true;
this.neck.setRotationPoint(0.0F, 0.5F, -2.0F);
this.neck.addBox(-2.0F, -1.0F, -6.0F, 4.0F, 2.0F, 6.0F, 0.0F, 0.0F, 0.0F);
this.wing_R6 = new ModelRenderer(this, 1, 18);
this.wing_R6.mirror = true;
this.wing_R6.setRotationPoint(-2.5F, 0.0F, 3.5F);
this.wing_R6.addBox(-5.0F, 0.0F, -1.5F, 5.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.shape7R = new ModelRenderer(this, 26, 0);
this.shape7R.setRotationPoint(-0.7F, -0.4F, 1.3F);
this.shape7R.addBox(0.0F, 0.0F, 0.0F, 2.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.tail_wing_L3 = new ModelRenderer(this, 0, 2);
this.tail_wing_L3.setRotationPoint(1.4F, -0.2F, 6.0F);
this.tail_wing_L3.addBox(0.0F, 0.0F, -1.0F, 0.0F, 5.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(tail_wing_L3, 2.4130921279335604F, 0.2275909337942703F, 0.8651597048872669F);
this.wing_R7 = new ModelRenderer(this, 2, 18);
this.wing_R7.mirror = true;
this.wing_R7.setRotationPoint(-0.7F, 0.0F, 1.4F);
this.wing_R7.addBox(-4.0F, 0.0F, -1.5F, 4.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.wing_L4 = new ModelRenderer(this, -1, 18);
this.wing_L4.setRotationPoint(2.5F, 0.5F, 3.0F);
this.wing_L4.addBox(0.0F, 0.0F, -1.5F, 7.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.tail_wing_R3 = new ModelRenderer(this, 0, 2);
this.tail_wing_R3.setRotationPoint(-1.6F, -0.2F, 6.0F);
this.tail_wing_R3.addBox(0.0F, 0.0F, -1.0F, 0.0F, 5.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(tail_wing_R3, 2.4130921279335604F, -0.2275909337942703F, -0.7740534966278743F);
this.body = new ModelRenderer(this, 9, 8);
this.body.setRotationPoint(0.0F, 18.1F, -2.0F);
this.body.addBox(-3.0F, -1.0F, -3.0F, 6.0F, 3.0F, 5.0F, 0.0F, 0.0F, 0.0F);
this.wing_R1 = new ModelRenderer(this, 2, 18);
this.wing_R1.mirror = true;
this.wing_R1.setRotationPoint(-2.5F, 0.5F, -1.5F);
this.wing_R1.addBox(-4.0F, 0.0F, -1.5F, 4.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.claw_thing_1 = new ModelRenderer(this, 6, 0);
this.claw_thing_1.setRotationPoint(0.0F, 0.0F, -0.6F);
this.claw_thing_1.addBox(-0.5F, -0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(claw_thing_1, 0.6829473549475088F, 0.0F, 0.0F);
this.ArmL3 = new ModelRenderer(this, 10, 0);
this.ArmL3.mirror = true;
this.ArmL3.setRotationPoint(-0.1F, 1.5F, -0.2F);
this.ArmL3.addBox(-0.5F, 0.0F, -0.5F, 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(ArmL3, 0.7853981633974483F, 0.0F, 0.0F);
this.body3 = new ModelRenderer(this, 10, 8);
this.body3.setRotationPoint(0.0F, 0.5F, 3.5F);
this.body3.addBox(-2.5F, -1.0F, 0.0F, 5.0F, 2.0F, 5.0F, 0.0F, 0.0F, 0.0F);
this.wing_L1 = new ModelRenderer(this, 2, 18);
this.wing_L1.setRotationPoint(2.5F, 0.5F, -1.5F);
this.wing_L1.addBox(0.0F, 0.0F, -1.5F, 4.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.tail_wing_R2 = new ModelRenderer(this, 0, 2);
this.tail_wing_R2.setRotationPoint(-1.6F, -0.2F, 5.0F);
this.tail_wing_R2.addBox(0.0F, 0.0F, -1.0F, 0.0F, 5.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(tail_wing_R2, 2.4130921279335604F, -0.2275909337942703F, -0.5462880425584197F);
this.wing_R5 = new ModelRenderer(this, 0, 18);
this.wing_R5.mirror = true;
this.wing_R5.setRotationPoint(-2.5F, 0.0F, 1.6F);
this.wing_R5.addBox(-6.0F, 0.0F, -1.5F, 6.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.ArmR2 = new ModelRenderer(this, 10, 0);
this.ArmR2.mirror = true;
this.ArmR2.setRotationPoint(0.1F, 1.5F, -0.2F);
this.ArmR2.addBox(-0.5F, 0.0F, -0.5F, 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(ArmR2, 0.7853981633974483F, 0.0F, 0.0F);
this.shape7L = new ModelRenderer(this, 26, 0);
this.shape7L.mirror = true;
this.shape7L.setRotationPoint(-0.7F, -0.4F, 1.3F);
this.shape7L.addBox(0.0F, 0.0F, 0.0F, 2.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.wing_L5 = new ModelRenderer(this, 0, 18);
this.wing_L5.setRotationPoint(2.5F, 0.0F, 1.6F);
this.wing_L5.addBox(0.0F, 0.0F, -1.5F, 6.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.eyesL = new ModelRenderer(this, 0, 0);
this.eyesL.setRotationPoint(1.1F, -0.6F, -1.9F);
this.eyesL.addBox(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(eyesL, 2.048841998263499F, 0.0F, 0.3490658503988659F);
this.shape1 = new ModelRenderer(this, 38, 0);
this.shape1.setRotationPoint(0.0F, 0.0F, 4.1F);
this.shape1.addBox(-2.0F, -0.5F, 0.0F, 4.0F, 1.0F, 8.0F, 0.0F, 0.0F, 0.0F);
this.body2 = new ModelRenderer(this, 9, 8);
this.body2.mirror = true;
this.body2.setRotationPoint(0.0F, 0.1F, 1.5F);
this.body2.addBox(-3.0F, -1.0F, 0.0F, 6.0F, 3.0F, 5.0F, 0.0F, 0.0F, 0.0F);
this.wing_L7 = new ModelRenderer(this, 2, 18);
this.wing_L7.setRotationPoint(1.7F, 0.0F, 1.4F);
this.wing_L7.addBox(0.0F, 0.0F, -1.5F, 4.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.armR1 = new ModelRenderer(this, 10, 0);
this.armR1.setRotationPoint(0.1F, -0.1F, -0.6F);
this.armR1.addBox(-0.5F, 0.0F, -0.5F, 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(armR1, -1.0016444470669013F, 0.0F, 0.0F);
this.wing_R3 = new ModelRenderer(this, 0, 18);
this.wing_R3.mirror = true;
this.wing_R3.setRotationPoint(-2.5F, 0.5F, 1.0F);
this.wing_R3.addBox(-6.0F, 0.0F, -1.5F, 6.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.eyesR = new ModelRenderer(this, 0, 0);
this.eyesR.setRotationPoint(-2.0F, -0.4F, -1.9F);
this.eyesR.addBox(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(eyesR, 2.048841998263499F, 0.0F, -0.3642502295386026F);
this.armL1 = new ModelRenderer(this, 10, 0);
this.armL1.setRotationPoint(-0.1F, -0.1F, -0.6F);
this.armL1.addBox(-0.5F, 0.0F, -0.5F, 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(armL1, -1.0016444470669013F, 0.0F, 0.0F);
this.joint_1 = new ModelRenderer(this, 6, 0);
this.joint_1.setRotationPoint(1.2F, 0.4F, -3.0F);
this.joint_1.addBox(-0.5F, -0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.wing_R2 = new ModelRenderer(this, 1, 18);
this.wing_R2.mirror = true;
this.wing_R2.setRotationPoint(-2.5F, 0.5F, 0.5F);
this.wing_R2.addBox(-5.0F, 0.0F, -1.5F, 5.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.ArmR3 = new ModelRenderer(this, 10, 0);
this.ArmR3.mirror = true;
this.ArmR3.setRotationPoint(0.1F, 1.5F, -0.2F);
this.ArmR3.addBox(-0.5F, 0.0F, -0.5F, 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(ArmR3, 0.7853981633974483F, 0.0F, 0.0F);
this.tail_wing_L2 = new ModelRenderer(this, 0, 2);
this.tail_wing_L2.setRotationPoint(1.4F, -0.2F, 5.0F);
this.tail_wing_L2.addBox(0.0F, 0.0F, -1.0F, 0.0F, 5.0F, 2.0F, 0.0F, 0.0F, 0.0F);
this.setRotateAngle(tail_wing_L2, 2.4130921279335604F, 0.2275909337942703F, 0.6373942508178124F);
this.wing_L2 = new ModelRenderer(this, 1, 18);
this.wing_L2.setRotationPoint(2.5F, 0.5F, 0.5F);
this.wing_L2.addBox(0.0F, 0.0F, -1.5F, 5.0F, 0.0F, 3.0F, 0.0F, 0.0F, 0.0F);
this.shape1.addChild(this.tail_wing_R1);
this.head.addChild(this.joint_2);
this.body2.addChild(this.wing_R4);
this.neck.addChild(this.head);
this.joint_2.addChild(this.claw_thing_2);
this.body2.addChild(this.wing_L3);
this.shape1.addChild(this.tail_wing_L1);
this.armL1.addChild(this.ArmL2);
this.body3.addChild(this.wing_L6);
this.body.addChild(this.neck);
this.body3.addChild(this.wing_R6);
this.eyesR.addChild(this.shape7R);
this.shape1.addChild(this.tail_wing_L3);
this.shape1.addChild(this.wing_R7);
this.body2.addChild(this.wing_L4);
this.shape1.addChild(this.tail_wing_R3);
this.body.addChild(this.wing_R1);
this.joint_1.addChild(this.claw_thing_1);
this.ArmL2.addChild(this.ArmL3);
this.body2.addChild(this.body3);
this.body.addChild(this.wing_L1);
this.shape1.addChild(this.tail_wing_R2);
this.body3.addChild(this.wing_R5);
this.armR1.addChild(this.ArmR2);
this.eyesL.addChild(this.shape7L);
this.body3.addChild(this.wing_L5);
this.head.addChild(this.eyesL);
this.body3.addChild(this.shape1);
this.body.addChild(this.body2);
this.shape1.addChild(this.wing_L7);
this.claw_thing_2.addChild(this.armR1);
this.body2.addChild(this.wing_R3);
this.head.addChild(this.eyesR);
this.claw_thing_1.addChild(this.armL1);
this.head.addChild(this.joint_1);
this.body.addChild(this.wing_R2);
this.ArmR2.addChild(this.ArmR3);
this.shape1.addChild(this.tail_wing_L2);
this.body.addChild(this.wing_L2);
}
@Override
public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
ImmutableList.of(this.body).forEach((modelRenderer) -> {
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
});
}
@Override
public void setRotationAngles(T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {}
/**
* This is a helper function from Tabula to set the rotation of model parts
*/
public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
Had this problem
if you delete the // comments and the empty line below them it works (The first five lines)
It worked for me lemme know if it works,
Also in blockbench I converted it to modded entity and forge-1.17 also try that