.java name

Started by zxnm on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
.java name
Fri, 07/26/2019 - 14:04 (edited)

wthell is non ascll letters?is that mean that i can't import .java file?

Edited by zxnm on Fri, 07/26/2019 - 14:04
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
#not jave,is java sry
Fri, 07/26/2019 - 13:45

#not jave,is java

sry

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont get it,i edit…
Thu, 08/15/2019 - 15:31

i dont get it,i edit everything and still fail
how to solve  this?

I NEED ANSWER

 

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i solve this?        …
Thu, 08/15/2019 - 15:35

how do i solve this?

 

 

 

 

 

 

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
//Paste this code into your…
Fri, 08/16/2019 - 06:14

//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 L L;
    private final ModelRenderer L R;
    private final ModelRenderer BD;
    private final ModelRenderer HD R;
    private final ModelRenderer HD L;
    private final ModelRenderer HE;

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

        L L = new ModelRenderer(this);
        L L.setRotationPoint(0.0F, 24.0F, 0.0F);
        L L.cubeList.add(new ModelBox(L L, 48, 48, 0.0F, -16.0F, -5.0F, 6, 16, 10, 0.0F, false));

        L R = new ModelRenderer(this);
        L R.setRotationPoint(0.0F, 24.0F, 0.0F);
        L R.cubeList.add(new ModelBox(L R, 44, 0, -6.0F, -16.0F, -5.0F, 6, 16, 10, 0.0F, false));

        BD = new ModelRenderer(this);
        BD.setRotationPoint(0.0F, 24.0F, 0.0F);
        BD.cubeList.add(new ModelBox(BD, 70, 20, -4.0F, -21.0F, -3.0F, 8, 5, 6, 0.0F, false));
        BD.cubeList.add(new ModelBox(BD, 0, 0, -6.0F, -38.0F, -5.0F, 12, 17, 10, 0.0F, false));

        HD R = new ModelRenderer(this);
        HD R.setRotationPoint(0.0F, 24.0F, 0.0F);
        HD R.cubeList.add(new ModelBox(HD R, 24, 27, -10.0F, -38.0F, -4.0F, 4, 38, 8, 0.0F, false));

        HD L = new ModelRenderer(this);
        HD L.setRotationPoint(0.0F, 24.0F, 0.0F);
        HD L.cubeList.add(new ModelBox(HD L, 0, 27, 6.0F, -38.0F, -4.0F, 4, 38, 8, 0.0F, false));

        HE = new ModelRenderer(this);
        HE.setRotationPoint(0.0F, 24.0F, 0.0F);
        HE.cubeList.add(new ModelBox(HE, 48, 26, -4.0F, -44.0F, -3.0F, 8, 6, 6, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        L L.render(f5);
        L R.render(f5);
        BD.render(f5);
        HD R.render(f5);
        HD L.render(f5);
        HE.render(f5);
    }
    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }
}

The part names you use are…
Fri, 08/16/2019 - 08:20

The part names you use are invalid. For example, part name L L contains whitespace which is not OK for Java. Only use English letters and underscores for part names. Plus your model name is empty:

public class  extends ModelBase

It should be for example

public class ModelExampleName extends ModelBase, the same for the model constructor.

I highly suggest you to check some tutorials for the modeler you use.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx
Fri, 08/16/2019 - 17:16

Thx