Properly named java models don't import

Started by Bronze on

Topic category: General discussion

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Properly named java models don't import
Thu, 04/30/2020 - 09:35 (edited)

I don't know what's the problem, I've been recently making models and suddenly I can't import them, im not sure if it's the blockbench's new update fault because i tested if the same problem occurs in the older versions and it does, although my older models work properly when i try to import them. Here's what it says when i try to import it:

 

 

 

 

Here's the model code:

// Made with Blockbench 3.5.2
// Exported for Minecraft version 1.14
// Paste this class into your mod and generate all required imports

public class thesummoner extends EntityModel {
    private final RendererModel head;
    private final RendererModel nose;
    private final RendererModel body;
    private final RendererModel leg0;
    private final RendererModel leg1;
    private final RendererModel rightarm;
    private final RendererModel leftarm;

    public thesummoner() {
        textureWidth = 128;
        textureHeight = 128;

        head = new RendererModel(this);
        head.setRotationPoint(0.0F, 0.0F, 0.0F);
        head.cubeList.add(new ModelBox(head, 28, 28, -4.0F, -10.0F, -4.0F, 8, 10, 8, 0.0F, false));
        head.cubeList.add(new ModelBox(head, 0, 0, -5.0F, -10.0F, -5.0F, 10, 10, 10, 0.0F, false));

        nose = new RendererModel(this);
        nose.setRotationPoint(0.0F, -2.0F, 0.0F);
        head.addChild(nose);
        nose.cubeList.add(new ModelBox(nose, 0, 0, -1.0F, -1.0F, -6.0F, 2, 4, 2, 0.0F, false));

        body = new RendererModel(this);
        body.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.cubeList.add(new ModelBox(body, 40, 0, -4.0F, 0.0F, -3.0F, 8, 12, 6, 0.0F, false));
        body.cubeList.add(new ModelBox(body, 0, 21, -4.0F, 0.0F, -3.0F, 8, 18, 6, 0.5F, false));

        leg0 = new RendererModel(this);
        leg0.setRotationPoint(2.0F, 12.0F, 0.0F);
        leg0.cubeList.add(new ModelBox(leg0, 0, 45, -2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F, false));

        leg1 = new RendererModel(this);
        leg1.setRotationPoint(-2.0F, 12.0F, 0.0F);
        leg1.cubeList.add(new ModelBox(leg1, 0, 45, -2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F, false));

        rightarm = new RendererModel(this);
        rightarm.setRotationPoint(5.0F, 2.0F, 0.0F);
        rightarm.cubeList.add(new ModelBox(rightarm, 16, 45, -1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F, false));

        leftarm = new RendererModel(this);
        leftarm.setRotationPoint(-5.0F, 2.0F, 0.0F);
        leftarm.cubeList.add(new ModelBox(leftarm, 16, 45, -3.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        head.render(f5);
        body.render(f5);
        leg0.render(f5);
        leg1.render(f5);
        rightarm.render(f5);
        leftarm.render(f5);
    }

    public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }
}

 

 

 

Edited by Bronze on Thu, 04/30/2020 - 09:35
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also i did not know in which…
Thu, 04/30/2020 - 11:32

Also i did not know in which category to put it so ye...

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! So weird that a…
Thu, 04/30/2020 - 16:09

Thanks! So weird that a comment can ruin model importing.