Started by
AartisticAardwolf
on
Topic category: Help with MCreator software
Hey all... I tried using blockbench but mcreator says that my java model isn't valid, is there a step I'm missing or is there a better program??
Topic category: Help with MCreator software
Hey all... I tried using blockbench but mcreator says that my java model isn't valid, is there a step I'm missing or is there a better program??
Can you put an image of the model you made, the name of the model, and the error it gave you? If so i might be able to help, cause it works fine for me
When you make a new modded mob you have to put in a geometry name, to fix a already created mob, open the java file type in the mob name in the spaces with <*>
//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, 0, 0, -1.0F, -2.0F, -1.0F, 2, 2, 2, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
bone.render(f5);
}
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
hope this helps