Started by
zxnm
on
Topic category: Troubleshooting, bugs, and solutions
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
Topic category: Troubleshooting, bugs, and solutions
wthell is non ascll letters?is that mean that i can't import .java file?
#not jave,is java
sry
It is not the file name but the name of the model in the model source code inside the java file.
i dont get it,i edit everything and still fail
how to solve this?
I NEED ANSWER
how do i solve this?
Paste the contents of the file in which you "edited everything" so I can see what you have done.
//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 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.
Thx
You are welcome