Importing .java file issues.

Started by beanboy420 on Sun, 07/21/2019 - 20:27

Topic category: Help with MCreator's application

Last seen on 02:08, 27. Jul 2019
Joined Jul 2019
User points:


  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Importing .java file issues.
Sun, 07/21/2019 - 20:27

This may seem like a stupid question, but how do I rename the model name? I've tried renaming the file itself but I found out that does nothing and I had to rename the model itself within the code, I have no idea where the name is, or if it even exists, so the code's right here: 

//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 bone;

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

        bone = new ModelRenderer(this);
        bone.setRotationPoint(0.0F, 24.0F, 0.0F);
        bone.cubeList.add(new ModelBox(bone, 3, 10, -1.0F, -1.0F, 0.0F, 1, 1, 2, 0.0F, false));

    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;

0Upvote this forum topic