My Model Name Is Not A Valid Java Name

Started by JMD890 on

Topic category: Help with modding (Java Edition)

Last seen on 16:20, 29. Oct 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My Model Name Is Not A Valid Java Name

When I tried exporting a file from blockbench Mcreator said it wasn't a valid java name I looked at multiple forums but it still doesn't work someone plz help

Here is the code:

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

public class terrem1234 extends EntityModel {
    private final RendererModel bb_main;

    public terrem1234() {
        textureWidth = 32;
        textureHeight = 32;

        bb_main = new RendererModel(this);
        bb_main.setRotationPoint(0.0F, 24.0F, 0.0F);
        bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -3.0F, -9.0F, -1.0F, 6, 4, 3, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 5, 17, -1.0F, -5.0F, -1.0F, 2, 1, 3, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 15, 4, -4.0F, -9.0F, -1.0F, 1, 3, 3, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 10, 10, -3.0F, -4.0F, -1.0F, 2, 4, 3, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 0, 7, 1.0F, -4.0F, -1.0F, 2, 4, 3, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 0, 14, 3.0F, -9.0F, -1.0F, 1, 3, 3, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 19, 19, -5.0F, -8.0F, 0.0F, 1, 6, 1, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 15, 17, 4.0F, -8.0F, 0.0F, 1, 6, 1, 0.0F, false));
        bb_main.cubeList.add(new ModelBox(bb_main, 7, 7, -1.0F, -9.0F, 2.0F, 2, 2, 1, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        bb_main.render(f5);
    }

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

Last seen on 13:16, 28. Aug 2021
Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I experienced this problem…
Wed, 09/09/2020 - 17:20

I experienced this problem years ago. First, make sure when you first create your entity and you get the little gui popup, make sure to enter the java class name AND mob name. If that doesn't work, try re-exporting your model. Also, definitely listen to Klemen.

Last seen on 16:20, 29. Oct 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if i update it would my mod…
Wed, 09/09/2020 - 17:59

if i update it would my mod still be saved